You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Thomas Kellerer <sh...@gmx.net> on 2022/12/02 07:10:40 UTC
Project unloadable with Gradle 7.5.1 and NetBeans 16
Hello,
our project switch from Gradle 6.9.x to 7.5.1 and now it doesn't work with NetBeans 16 any more (the most recent "voting candidate")
Everything was working fine with Gradle 6.9.x even with the various NetBeans 16 RC versions
In case this is important: the gradle plugin versions are reported as:
org.netbeans.modules.libs.gradle/7 [7.6 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
org.netbeans.modules.gradle/2 [2.29 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
org.netbeans.modules.gradle.java [1.20.0.1 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
org.netbeans.modules.gradle.test [1.14 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
org.netbeans.modules.gradle.spring [1.14 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
org.netbeans.modules.gradle.persistence [1.14 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
org.netbeans.modules.gradle.editor [1.0 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
org.netbeans.modules.gradle.dists [1.6 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
org.netbeans.modules.gradle.java.coverage [1.11 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
org.netbeans.modules.gradle.kit [1.14 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
org.netbeans.modules.gradle.javaee [1.13 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
org.netbeans.modules.gradle.htmlui [1.13 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
org.netbeans.modules.gradle.groovy [1.7 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
Whenever I open the project, NetBeans shows the project is unloadable with this message
Reason: java.io.NotSerializableException: [extensions.propertyValues]
The log file only shows:
Failed to retrieve project information for: C:\Projects\*******\server
Reason: java.io.NotSerializableException: [extensions.propertyValues]
NetBeans is running with Java 11 and the project is using Java 11 as well.
I tried different settings for the Gradle integration.
* "Use Standard Gradle Version" then select 7.5.1 in the drop down.
* Specify an externally installed Gradle
* Enabled/Disabled the "Prefer to use Gradle Wrapper that comes with the project"
I also tried with a completely empty
nothing helped.
The build.gradle looks like this (I have removed references to internal projects or libraries as we are under a NDA here)
import com.bmuschko.gradle.docker.tasks.image.*
plugins {
id "java"
id "org.springframework.boot" version "${springBootVersion}"
id "io.spring.dependency-management" version "${dependencyManagementVersion}"
id 'com.adarshr.test-logger' version "${testLoggerPluginVersion}"
}
dependencies {
implementation "org.springframework.boot:spring-boot-starter-web:${springBootVersion}"
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor:${springBootVersion}"
// reference to an internal library
implementation platform(".....")
// about 30 dependencies on internal libraries
implementation("....")
.....
implementation ("org.jsoup:jsoup:${jsoupVersion}")
implementation project(":project-module-one")
implementation project(":commons:project-module-two")
implementation project(":commons:project-module-three")
implementation project(":commons:project-module-four")
implementation "com.sun.xml.ws:jaxws-rt:2.3.1"
implementation "javax.xml.ws:jaxws-api:2.3.1"
implementation "javax.jws:javax.jws-api:1.1"
implementation "javax.xml.bind:jaxb-api:2.3.1"
implementation "xml-apis:xml-apis:1.4.01"
implementation "com.sun.xml.messaging.saaj:saaj-impl:1.5.3"
implementation "org.glassfish.jaxb:jaxb-runtime:2.3.4"
implementation "org.springframework.boot:spring-boot-starter-cache:${springBootVersion}"
implementation 'com.github.ben-manes.caffeine:caffeine:3.0.2'
implementation "org.springframework.ws:spring-ws-core:${springVersionWS}"
implementation "org.springframework.ws:spring-ws-support:${springVersionWS}"
implementation "org.springframework.ws:spring-ws-security:${springVersionWS}"
implementation "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}"
implementation "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
implementation "com.fasterxml.jackson.core:jackson-annotations:${jacksonVersion}"
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:${jacksonVersion}"
implementation "com.auth0:java-jwt:${auth0JwtVersion}"
testImplementation "org.springframework.boot:spring-boot-starter-test:${springBootVersion}"
testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
}
test {
useJUnitPlatform()
}
springBoot {
mainClass = "com.MainClass"
}
configurations {
all*.exclude group: 'xml-apis'
}
tasks.register("start") {
dependsOn bootRun
}
artifacts {
archives bootJar
}
publishing {
publications {
serverBootJar(MavenPublication) {
groupId = rootProject.group
artifactId = "server"
version = rootProject.version
artifact bootJar
}
}
}
// Docker builds
String serverName = "server"
String serverTagShort = calculateShortTag(serverName)
String serverTagFull = calculateFullTag(serverName)
tasks.register("buildImages", DockerBuildImage) {
group = "docker"
dependsOn bootJar
images.add(serverTagShort)
images.add(serverTagFull)
inputDir.set(file("."))
dockerFile.set(file("Dockerfile"))
dockerRegistryCredentialsForRead
}
tasks.register("pushImages", DockerPushImage) {
group = "docker"
dependsOn buildImages
images.add(serverTagFull)
}
tasks.register("removeTagShort", DockerRemoveImage) {
group = "docker"
targetImageId serverTagShort
force = true
onError { exception -> println("Could not find image") }
}
tasks.register("removeTagFull", DockerRemoveImage) {
group = "docker"
targetImageId serverTagFull
force = true
onError { exception -> println("Could not find image") }
}
tasks.register("cleanImages") {
group = "docker"
dependsOn removeTagShort
dependsOn removeTagFull
}
publish.dependsOn assemble
Any ideas?
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Project unloadable with Gradle 7.5.1 and NetBeans 16
Posted by Thomas Kellerer <sh...@gmx.net>.
Thomas Kellerer schrieb am 02.12.2022 um 08:10:
> our project switch from Gradle 6.9.x to 7.5.1 and now it doesn't work with NetBeans 16 any more (the most recent "voting candidate")
> Everything was working fine with Gradle 6.9.x even with the various NetBeans 16 RC versions
>
> Whenever I open the project, NetBeans shows the project is unloadable with this message
>
> Reason: java.io.NotSerializableException: [extensions.propertyValues]
>
This above error message appears when starting NetBeans and when it tries to reload the already opened projects.
If I open one of the modules through "File -> Open Project" the module does not open at all - not even with that warning message from above.
The log file contains this NullPointerException
java.lang.NullPointerException
at org.netbeans.modules.gradle.api.GradleBaseProjectBuilder.processBasicInfo(GradleBaseProjectBuilder.java:108)
at org.netbeans.modules.gradle.api.GradleBaseProjectBuilder.build(GradleBaseProjectBuilder.java:85)
at org.netbeans.modules.gradle.api.GradleBaseProjectBuilder$Extractor.extract(GradleBaseProjectBuilder.java:485)
at org.netbeans.modules.gradle.loaders.AbstractProjectLoader.createGradleProject(AbstractProjectLoader.java:107)
at org.netbeans.modules.gradle.loaders.DiskCacheProjectLoader.load(DiskCacheProjectLoader.java:44)
at org.netbeans.modules.gradle.loaders.GradleProjectLoaderImpl.loadProject(GradleProjectLoaderImpl.java:88)
at org.netbeans.modules.gradle.NbGradleProjectImpl.loadOwnProject0(NbGradleProjectImpl.java:475)
at org.netbeans.modules.gradle.NbGradleProjectImpl.projectWithQuality(NbGradleProjectImpl.java:284)
at org.netbeans.modules.gradle.NbGradleProjectImpl.getGradleProject(NbGradleProjectImpl.java:200)
at org.netbeans.modules.gradle.NbGradleProjectFactory.loadProject(NbGradleProjectFactory.java:99)
at org.netbeans.modules.projectapi.nb.NbProjectManager.createProject(NbProjectManager.java:376)
at org.netbeans.modules.projectapi.nb.NbProjectManager.access$300(NbProjectManager.java:69)
at org.netbeans.modules.projectapi.nb.NbProjectManager$2.run(NbProjectManager.java:289)
at org.netbeans.modules.projectapi.nb.NbProjectManager$2.run(NbProjectManager.java:218)
at org.netbeans.modules.openide.util.DefaultMutexImplementation.readAccess(DefaultMutexImplementation.java:188)
at org.openide.util.Mutex.readAccess(Mutex.java:231)
at org.netbeans.modules.projectapi.nb.NbProjectManager.findProject(NbProjectManager.java:218)
at org.netbeans.api.project.ProjectManager.findProject(ProjectManager.java:142)
at org.netbeans.modules.projectapi.SimpleFileOwnerQueryImplementation.getOwner(SimpleFileOwnerQueryImplementation.java:144)
at org.netbeans.modules.projectapi.SimpleFileOwnerQueryImplementation.getOwner(SimpleFileOwnerQueryImplementation.java:93)
at org.netbeans.api.project.FileOwnerQuery.getOwner(FileOwnerQuery.java:125)
at org.netbeans.modules.java.project.ProjectSourceForBinaryQuery.findSourceRoots2(ProjectSourceForBinaryQuery.java:54)
at org.netbeans.api.java.queries.SourceForBinaryQuery.findSourceRoots2(SourceForBinaryQuery.java:101)
at org.netbeans.modules.parsing.impl.indexing.PathRegistry.createResources(PathRegistry.java:730)
at org.netbeans.modules.parsing.impl.indexing.PathRegistry.getSources(PathRegistry.java:277)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RootsWork.getDone(RepositoryUpdater.java:4925)
[catch] at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:3452)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(RepositoryUpdater.java:6197)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.access$3400(RepositoryUpdater.java:5855)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2.lambda$call$0(RepositoryUpdater.java:6116)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)
at org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport.performScan(RunWhenScanFinishedSupport.java:83)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2.call(RepositoryUpdater.java:6116)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2.call(RepositoryUpdater.java:6112)
at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153)
at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335)
at org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118)
at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.run(RepositoryUpdater.java:6112)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Project unloadable with Gradle 7.5.1 and NetBeans 16
Posted by Giles Winstanley <st...@snaq.net>.
Ah, that's frustrating; I've not encountered this particular error, so
unsure in which direction to look to resolve this. I find Gradle support
in NetBeans has been rather fragile, although generally better in NB15,
and I'm hoping the NB16 issues are resolved quickly. I spent far too
long with previous versions having NB as essentially a simple text
editor for Gradle projects, with none of the IDE features working.
It may be worth submitting a new Github issue for this, as it's possible
the same problem would/will show up in NB16u1. If it turns out to be a
small/simple issue, then better to have a chance it could be addressed
in that update instead of it rolling over in NB17.
Stan
On 02/12/2022 12:46, Thomas Kellerer wrote:
> Unfortunately NetBeans 15 also refused to open those projects failing with the same NPE:
>
> ava.lang.NullPointerException
> at org.netbeans.modules.gradle.api.GradleBaseProjectBuilder.processBasicInfo(GradleBaseProjectBuilder.java:107)
> at org.netbeans.modules.gradle.api.GradleBaseProjectBuilder.build(GradleBaseProjectBuilder.java:84)
> at org.netbeans.modules.gradle.api.GradleBaseProjectBuilder$Extractor.extract(GradleBaseProjectBuilder.java:406)
> at org.netbeans.modules.gradle.loaders.AbstractProjectLoader.createGradleProject(AbstractProjectLoader.java:107)
> at org.netbeans.modules.gradle.loaders.DiskCacheProjectLoader.load(DiskCacheProjectLoader.java:44)
> at org.netbeans.modules.gradle.loaders.GradleProjectLoaderImpl.loadProject(GradleProjectLoaderImpl.java:88)
> at org.netbeans.modules.gradle.NbGradleProjectImpl.loadOwnProject0(NbGradleProjectImpl.java:470)
> at org.netbeans.modules.gradle.NbGradleProjectImpl.projectWithQuality(NbGradleProjectImpl.java:279)
> at org.netbeans.modules.gradle.NbGradleProjectImpl.getGradleProject(NbGradleProjectImpl.java:195)
> at org.netbeans.modules.gradle.NbGradleProjectFactory.loadProject(NbGradleProjectFactory.java:94)
> at org.netbeans.modules.projectapi.nb.NbProjectManager.createProject(NbProjectManager.java:376)
> at org.netbeans.modules.projectapi.nb.NbProjectManager.access$300(NbProjectManager.java:69)
> at org.netbeans.modules.projectapi.nb.NbProjectManager$2.run(NbProjectManager.java:289)
> at org.netbeans.modules.projectapi.nb.NbProjectManager$2.run(NbProjectManager.java:218)
> at org.netbeans.modules.openide.util.DefaultMutexImplementation.readAccess(DefaultMutexImplementation.java:188)
> at org.openide.util.Mutex.readAccess(Mutex.java:231)
> at org.netbeans.modules.projectapi.nb.NbProjectManager.findProject(NbProjectManager.java:218)
> at org.netbeans.api.project.ProjectManager.findProject(ProjectManager.java:142)
> at org.netbeans.modules.gradle.queries.ProjectContainerProviderImpl.getSubprojects(ProjectContainerProviderImpl.java:75)
> at org.netbeans.modules.gradle.queries.ProjectContainerProviderImpl.getContainedProjects(ProjectContainerProviderImpl.java:55)
> at org.netbeans.api.project.ProjectUtils.getContainedProjects(ProjectUtils.java:189)
> at org.netbeans.modules.gradle.nodes.SubProjectsNode$SubProjectsChildFactory.createKeys(SubProjectsNode.java:142)
> at org.openide.nodes.AsynchChildren.run(AsynchChildren.java:202)
> at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
> at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
> [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
>
> Loading of the root project works, but expanding the "Sub Projects" node leads to the above NPE.
>
> Thomas
>
>
> Giles Winstanley schrieb am 02.12.2022 um 12:36:
>> Hi Thomas,
>>
>> This is a known issue that is already being worked on by the Gradle module developers:
>> https://github.com/apache/netbeans/pull/5022
>>
>> Unfortunately it didn't make it into the upcoming v16 release, but from what I understand there is likely to be an update release which should resolve this. I'm also affected by this issue as I use Gradle extensively, so for now I'm continuing to use Netbeans 15, Gradle 7.5.1, and JDK 18, which all work together nicely (as they should also with JDK 11).
>>
>> Stan
>>
>> On 02/12/2022 07:10, Thomas Kellerer wrote:
>>> Hello,
>>>
>>> our project switch from Gradle 6.9.x to 7.5.1 and now it doesn't work with NetBeans 16 any more (the most recent "voting candidate")
>>> Everything was working fine with Gradle 6.9.x even with the various NetBeans 16 RC versions
>>>
>>> In case this is important: the gradle plugin versions are reported as:
>>>
>>> org.netbeans.modules.libs.gradle/7 [7.6 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>>> org.netbeans.modules.gradle/2 [2.29 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>>> org.netbeans.modules.gradle.java [1.20.0.1 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>>> org.netbeans.modules.gradle.test [1.14 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>>> org.netbeans.modules.gradle.spring [1.14 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>>> org.netbeans.modules.gradle.persistence [1.14 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>>> org.netbeans.modules.gradle.editor [1.0 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>>> org.netbeans.modules.gradle.dists [1.6 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>>> org.netbeans.modules.gradle.java.coverage [1.11 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>>> org.netbeans.modules.gradle.kit [1.14 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>>> org.netbeans.modules.gradle.javaee [1.13 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>>> org.netbeans.modules.gradle.htmlui [1.13 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>>> org.netbeans.modules.gradle.groovy [1.7 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>>>
>>> Whenever I open the project, NetBeans shows the project is unloadable with this message
>>>
>>> Reason: java.io.NotSerializableException: [extensions.propertyValues]
>>>
>>>
>>> The log file only shows:
>>>
>>> Failed to retrieve project information for: C:\Projects\*******\server
>>> Reason: java.io.NotSerializableException: [extensions.propertyValues]
>>>
>>> NetBeans is running with Java 11 and the project is using Java 11 as well.
>>>
>>> I tried different settings for the Gradle integration.
>>>
>>> * "Use Standard Gradle Version" then select 7.5.1 in the drop down.
>>> * Specify an externally installed Gradle
>>> * Enabled/Disabled the "Prefer to use Gradle Wrapper that comes with the project"
>>>
>>> I also tried with a completely empty
>>>
>>> nothing helped.
>>>
>>> The build.gradle looks like this (I have removed references to internal projects or libraries as we are under a NDA here)
>>>
>>> import com.bmuschko.gradle.docker.tasks.image.*
>>>
>>> plugins {
>>> id "java"
>>> id "org.springframework.boot" version "${springBootVersion}"
>>> id "io.spring.dependency-management" version "${dependencyManagementVersion}"
>>> id 'com.adarshr.test-logger' version "${testLoggerPluginVersion}"
>>> }
>>>
>>> dependencies {
>>>
>>> implementation "org.springframework.boot:spring-boot-starter-web:${springBootVersion}"
>>> annotationProcessor "org.springframework.boot:spring-boot-configuration-processor:${springBootVersion}"
>>>
>>> // reference to an internal library
>>> implementation platform(".....")
>>>
>>> // about 30 dependencies on internal libraries
>>> implementation("....")
>>> .....
>>>
>>>
>>> implementation ("org.jsoup:jsoup:${jsoupVersion}")
>>>
>>> implementation project(":project-module-one")
>>> implementation project(":commons:project-module-two")
>>> implementation project(":commons:project-module-three")
>>> implementation project(":commons:project-module-four")
>>>
>>> implementation "com.sun.xml.ws:jaxws-rt:2.3.1"
>>> implementation "javax.xml.ws:jaxws-api:2.3.1"
>>> implementation "javax.jws:javax.jws-api:1.1"
>>> implementation "javax.xml.bind:jaxb-api:2.3.1"
>>> implementation "xml-apis:xml-apis:1.4.01"
>>> implementation "com.sun.xml.messaging.saaj:saaj-impl:1.5.3"
>>> implementation "org.glassfish.jaxb:jaxb-runtime:2.3.4"
>>> implementation "org.springframework.boot:spring-boot-starter-cache:${springBootVersion}"
>>> implementation 'com.github.ben-manes.caffeine:caffeine:3.0.2'
>>> implementation "org.springframework.ws:spring-ws-core:${springVersionWS}"
>>> implementation "org.springframework.ws:spring-ws-support:${springVersionWS}"
>>> implementation "org.springframework.ws:spring-ws-security:${springVersionWS}"
>>>
>>> implementation "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}"
>>> implementation "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
>>> implementation "com.fasterxml.jackson.core:jackson-annotations:${jacksonVersion}"
>>> implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:${jacksonVersion}"
>>>
>>> implementation "com.auth0:java-jwt:${auth0JwtVersion}"
>>>
>>>
>>> testImplementation "org.springframework.boot:spring-boot-starter-test:${springBootVersion}"
>>> testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
>>> testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
>>> }
>>>
>>> test {
>>> useJUnitPlatform()
>>> }
>>>
>>> springBoot {
>>> mainClass = "com.MainClass"
>>> }
>>> configurations {
>>> all*.exclude group: 'xml-apis'
>>> }
>>> tasks.register("start") {
>>> dependsOn bootRun
>>> }
>>>
>>> artifacts {
>>> archives bootJar
>>> }
>>>
>>> publishing {
>>> publications {
>>> serverBootJar(MavenPublication) {
>>> groupId = rootProject.group
>>> artifactId = "server"
>>> version = rootProject.version
>>>
>>> artifact bootJar
>>> }
>>> }
>>> }
>>>
>>> // Docker builds
>>> String serverName = "server"
>>> String serverTagShort = calculateShortTag(serverName)
>>> String serverTagFull = calculateFullTag(serverName)
>>>
>>> tasks.register("buildImages", DockerBuildImage) {
>>> group = "docker"
>>> dependsOn bootJar
>>>
>>> images.add(serverTagShort)
>>> images.add(serverTagFull)
>>> inputDir.set(file("."))
>>> dockerFile.set(file("Dockerfile"))
>>> dockerRegistryCredentialsForRead
>>> }
>>>
>>> tasks.register("pushImages", DockerPushImage) {
>>> group = "docker"
>>> dependsOn buildImages
>>>
>>> images.add(serverTagFull)
>>> }
>>>
>>> tasks.register("removeTagShort", DockerRemoveImage) {
>>> group = "docker"
>>> targetImageId serverTagShort
>>> force = true
>>> onError { exception -> println("Could not find image") }
>>> }
>>>
>>> tasks.register("removeTagFull", DockerRemoveImage) {
>>> group = "docker"
>>> targetImageId serverTagFull
>>> force = true
>>> onError { exception -> println("Could not find image") }
>>> }
>>>
>>> tasks.register("cleanImages") {
>>> group = "docker"
>>> dependsOn removeTagShort
>>> dependsOn removeTagFull
>>> }
>>>
>>> publish.dependsOn assemble
>>>
>>>
>>> Any ideas?
>>> Thomas
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: users-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Project unloadable with Gradle 7.5.1 and NetBeans 16
Posted by Thomas Kellerer <sh...@gmx.net>.
Unfortunately NetBeans 15 also refused to open those projects failing with the same NPE:
ava.lang.NullPointerException
at org.netbeans.modules.gradle.api.GradleBaseProjectBuilder.processBasicInfo(GradleBaseProjectBuilder.java:107)
at org.netbeans.modules.gradle.api.GradleBaseProjectBuilder.build(GradleBaseProjectBuilder.java:84)
at org.netbeans.modules.gradle.api.GradleBaseProjectBuilder$Extractor.extract(GradleBaseProjectBuilder.java:406)
at org.netbeans.modules.gradle.loaders.AbstractProjectLoader.createGradleProject(AbstractProjectLoader.java:107)
at org.netbeans.modules.gradle.loaders.DiskCacheProjectLoader.load(DiskCacheProjectLoader.java:44)
at org.netbeans.modules.gradle.loaders.GradleProjectLoaderImpl.loadProject(GradleProjectLoaderImpl.java:88)
at org.netbeans.modules.gradle.NbGradleProjectImpl.loadOwnProject0(NbGradleProjectImpl.java:470)
at org.netbeans.modules.gradle.NbGradleProjectImpl.projectWithQuality(NbGradleProjectImpl.java:279)
at org.netbeans.modules.gradle.NbGradleProjectImpl.getGradleProject(NbGradleProjectImpl.java:195)
at org.netbeans.modules.gradle.NbGradleProjectFactory.loadProject(NbGradleProjectFactory.java:94)
at org.netbeans.modules.projectapi.nb.NbProjectManager.createProject(NbProjectManager.java:376)
at org.netbeans.modules.projectapi.nb.NbProjectManager.access$300(NbProjectManager.java:69)
at org.netbeans.modules.projectapi.nb.NbProjectManager$2.run(NbProjectManager.java:289)
at org.netbeans.modules.projectapi.nb.NbProjectManager$2.run(NbProjectManager.java:218)
at org.netbeans.modules.openide.util.DefaultMutexImplementation.readAccess(DefaultMutexImplementation.java:188)
at org.openide.util.Mutex.readAccess(Mutex.java:231)
at org.netbeans.modules.projectapi.nb.NbProjectManager.findProject(NbProjectManager.java:218)
at org.netbeans.api.project.ProjectManager.findProject(ProjectManager.java:142)
at org.netbeans.modules.gradle.queries.ProjectContainerProviderImpl.getSubprojects(ProjectContainerProviderImpl.java:75)
at org.netbeans.modules.gradle.queries.ProjectContainerProviderImpl.getContainedProjects(ProjectContainerProviderImpl.java:55)
at org.netbeans.api.project.ProjectUtils.getContainedProjects(ProjectUtils.java:189)
at org.netbeans.modules.gradle.nodes.SubProjectsNode$SubProjectsChildFactory.createKeys(SubProjectsNode.java:142)
at org.openide.nodes.AsynchChildren.run(AsynchChildren.java:202)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Loading of the root project works, but expanding the "Sub Projects" node leads to the above NPE.
Thomas
Giles Winstanley schrieb am 02.12.2022 um 12:36:
> Hi Thomas,
>
> This is a known issue that is already being worked on by the Gradle module developers:
> https://github.com/apache/netbeans/pull/5022
>
> Unfortunately it didn't make it into the upcoming v16 release, but from what I understand there is likely to be an update release which should resolve this. I'm also affected by this issue as I use Gradle extensively, so for now I'm continuing to use Netbeans 15, Gradle 7.5.1, and JDK 18, which all work together nicely (as they should also with JDK 11).
>
> Stan
>
> On 02/12/2022 07:10, Thomas Kellerer wrote:
>> Hello,
>>
>> our project switch from Gradle 6.9.x to 7.5.1 and now it doesn't work with NetBeans 16 any more (the most recent "voting candidate")
>> Everything was working fine with Gradle 6.9.x even with the various NetBeans 16 RC versions
>>
>> In case this is important: the gradle plugin versions are reported as:
>>
>> org.netbeans.modules.libs.gradle/7 [7.6 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>> org.netbeans.modules.gradle/2 [2.29 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>> org.netbeans.modules.gradle.java [1.20.0.1 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>> org.netbeans.modules.gradle.test [1.14 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>> org.netbeans.modules.gradle.spring [1.14 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>> org.netbeans.modules.gradle.persistence [1.14 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>> org.netbeans.modules.gradle.editor [1.0 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>> org.netbeans.modules.gradle.dists [1.6 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>> org.netbeans.modules.gradle.java.coverage [1.11 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>> org.netbeans.modules.gradle.kit [1.14 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>> org.netbeans.modules.gradle.javaee [1.13 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>> org.netbeans.modules.gradle.htmlui [1.13 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>> org.netbeans.modules.gradle.groovy [1.7 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>>
>> Whenever I open the project, NetBeans shows the project is unloadable with this message
>>
>> Reason: java.io.NotSerializableException: [extensions.propertyValues]
>>
>>
>> The log file only shows:
>>
>> Failed to retrieve project information for: C:\Projects\*******\server
>> Reason: java.io.NotSerializableException: [extensions.propertyValues]
>>
>> NetBeans is running with Java 11 and the project is using Java 11 as well.
>>
>> I tried different settings for the Gradle integration.
>>
>> * "Use Standard Gradle Version" then select 7.5.1 in the drop down.
>> * Specify an externally installed Gradle
>> * Enabled/Disabled the "Prefer to use Gradle Wrapper that comes with the project"
>>
>> I also tried with a completely empty
>>
>> nothing helped.
>>
>> The build.gradle looks like this (I have removed references to internal projects or libraries as we are under a NDA here)
>>
>> import com.bmuschko.gradle.docker.tasks.image.*
>>
>> plugins {
>> id "java"
>> id "org.springframework.boot" version "${springBootVersion}"
>> id "io.spring.dependency-management" version "${dependencyManagementVersion}"
>> id 'com.adarshr.test-logger' version "${testLoggerPluginVersion}"
>> }
>>
>> dependencies {
>>
>> implementation "org.springframework.boot:spring-boot-starter-web:${springBootVersion}"
>> annotationProcessor "org.springframework.boot:spring-boot-configuration-processor:${springBootVersion}"
>>
>> // reference to an internal library
>> implementation platform(".....")
>>
>> // about 30 dependencies on internal libraries
>> implementation("....")
>> .....
>>
>>
>> implementation ("org.jsoup:jsoup:${jsoupVersion}")
>>
>> implementation project(":project-module-one")
>> implementation project(":commons:project-module-two")
>> implementation project(":commons:project-module-three")
>> implementation project(":commons:project-module-four")
>>
>> implementation "com.sun.xml.ws:jaxws-rt:2.3.1"
>> implementation "javax.xml.ws:jaxws-api:2.3.1"
>> implementation "javax.jws:javax.jws-api:1.1"
>> implementation "javax.xml.bind:jaxb-api:2.3.1"
>> implementation "xml-apis:xml-apis:1.4.01"
>> implementation "com.sun.xml.messaging.saaj:saaj-impl:1.5.3"
>> implementation "org.glassfish.jaxb:jaxb-runtime:2.3.4"
>> implementation "org.springframework.boot:spring-boot-starter-cache:${springBootVersion}"
>> implementation 'com.github.ben-manes.caffeine:caffeine:3.0.2'
>> implementation "org.springframework.ws:spring-ws-core:${springVersionWS}"
>> implementation "org.springframework.ws:spring-ws-support:${springVersionWS}"
>> implementation "org.springframework.ws:spring-ws-security:${springVersionWS}"
>>
>> implementation "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}"
>> implementation "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
>> implementation "com.fasterxml.jackson.core:jackson-annotations:${jacksonVersion}"
>> implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:${jacksonVersion}"
>>
>> implementation "com.auth0:java-jwt:${auth0JwtVersion}"
>>
>>
>> testImplementation "org.springframework.boot:spring-boot-starter-test:${springBootVersion}"
>> testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
>> testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
>> }
>>
>> test {
>> useJUnitPlatform()
>> }
>>
>> springBoot {
>> mainClass = "com.MainClass"
>> }
>> configurations {
>> all*.exclude group: 'xml-apis'
>> }
>> tasks.register("start") {
>> dependsOn bootRun
>> }
>>
>> artifacts {
>> archives bootJar
>> }
>>
>> publishing {
>> publications {
>> serverBootJar(MavenPublication) {
>> groupId = rootProject.group
>> artifactId = "server"
>> version = rootProject.version
>>
>> artifact bootJar
>> }
>> }
>> }
>>
>> // Docker builds
>> String serverName = "server"
>> String serverTagShort = calculateShortTag(serverName)
>> String serverTagFull = calculateFullTag(serverName)
>>
>> tasks.register("buildImages", DockerBuildImage) {
>> group = "docker"
>> dependsOn bootJar
>>
>> images.add(serverTagShort)
>> images.add(serverTagFull)
>> inputDir.set(file("."))
>> dockerFile.set(file("Dockerfile"))
>> dockerRegistryCredentialsForRead
>> }
>>
>> tasks.register("pushImages", DockerPushImage) {
>> group = "docker"
>> dependsOn buildImages
>>
>> images.add(serverTagFull)
>> }
>>
>> tasks.register("removeTagShort", DockerRemoveImage) {
>> group = "docker"
>> targetImageId serverTagShort
>> force = true
>> onError { exception -> println("Could not find image") }
>> }
>>
>> tasks.register("removeTagFull", DockerRemoveImage) {
>> group = "docker"
>> targetImageId serverTagFull
>> force = true
>> onError { exception -> println("Could not find image") }
>> }
>>
>> tasks.register("cleanImages") {
>> group = "docker"
>> dependsOn removeTagShort
>> dependsOn removeTagFull
>> }
>>
>> publish.dependsOn assemble
>>
>>
>> Any ideas?
>> Thomas
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: users-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Project unloadable with Gradle 7.5.1 and NetBeans 16
Posted by Giles Winstanley <st...@snaq.net>.
Hi Thomas,
This is a known issue that is already being worked on by the Gradle
module developers:
https://github.com/apache/netbeans/pull/5022
Unfortunately it didn't make it into the upcoming v16 release, but from
what I understand there is likely to be an update release which should
resolve this. I'm also affected by this issue as I use Gradle
extensively, so for now I'm continuing to use Netbeans 15, Gradle 7.5.1,
and JDK 18, which all work together nicely (as they should also with JDK
11).
Stan
On 02/12/2022 07:10, Thomas Kellerer wrote:
> Hello,
>
> our project switch from Gradle 6.9.x to 7.5.1 and now it doesn't work with NetBeans 16 any more (the most recent "voting candidate")
> Everything was working fine with Gradle 6.9.x even with the various NetBeans 16 RC versions
>
> In case this is important: the gradle plugin versions are reported as:
>
> org.netbeans.modules.libs.gradle/7 [7.6 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
> org.netbeans.modules.gradle/2 [2.29 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
> org.netbeans.modules.gradle.java [1.20.0.1 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
> org.netbeans.modules.gradle.test [1.14 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
> org.netbeans.modules.gradle.spring [1.14 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
> org.netbeans.modules.gradle.persistence [1.14 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
> org.netbeans.modules.gradle.editor [1.0 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
> org.netbeans.modules.gradle.dists [1.6 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
> org.netbeans.modules.gradle.java.coverage [1.11 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
> org.netbeans.modules.gradle.kit [1.14 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
> org.netbeans.modules.gradle.javaee [1.13 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
> org.netbeans.modules.gradle.htmlui [1.13 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
> org.netbeans.modules.gradle.groovy [1.7 16-321935444b183aea1c4ff255d8d2ab8d50c60606]
>
> Whenever I open the project, NetBeans shows the project is unloadable with this message
>
> Reason: java.io.NotSerializableException: [extensions.propertyValues]
>
>
> The log file only shows:
>
> Failed to retrieve project information for: C:\Projects\*******\server
> Reason: java.io.NotSerializableException: [extensions.propertyValues]
>
> NetBeans is running with Java 11 and the project is using Java 11 as well.
>
> I tried different settings for the Gradle integration.
>
> * "Use Standard Gradle Version" then select 7.5.1 in the drop down.
> * Specify an externally installed Gradle
> * Enabled/Disabled the "Prefer to use Gradle Wrapper that comes with the project"
>
> I also tried with a completely empty
>
> nothing helped.
>
> The build.gradle looks like this (I have removed references to internal projects or libraries as we are under a NDA here)
>
> import com.bmuschko.gradle.docker.tasks.image.*
>
> plugins {
> id "java"
> id "org.springframework.boot" version "${springBootVersion}"
> id "io.spring.dependency-management" version "${dependencyManagementVersion}"
> id 'com.adarshr.test-logger' version "${testLoggerPluginVersion}"
> }
>
> dependencies {
>
> implementation "org.springframework.boot:spring-boot-starter-web:${springBootVersion}"
> annotationProcessor "org.springframework.boot:spring-boot-configuration-processor:${springBootVersion}"
>
> // reference to an internal library
> implementation platform(".....")
>
> // about 30 dependencies on internal libraries
> implementation("....")
> .....
>
>
> implementation ("org.jsoup:jsoup:${jsoupVersion}")
>
> implementation project(":project-module-one")
> implementation project(":commons:project-module-two")
> implementation project(":commons:project-module-three")
> implementation project(":commons:project-module-four")
>
> implementation "com.sun.xml.ws:jaxws-rt:2.3.1"
> implementation "javax.xml.ws:jaxws-api:2.3.1"
> implementation "javax.jws:javax.jws-api:1.1"
> implementation "javax.xml.bind:jaxb-api:2.3.1"
> implementation "xml-apis:xml-apis:1.4.01"
> implementation "com.sun.xml.messaging.saaj:saaj-impl:1.5.3"
> implementation "org.glassfish.jaxb:jaxb-runtime:2.3.4"
> implementation "org.springframework.boot:spring-boot-starter-cache:${springBootVersion}"
> implementation 'com.github.ben-manes.caffeine:caffeine:3.0.2'
> implementation "org.springframework.ws:spring-ws-core:${springVersionWS}"
> implementation "org.springframework.ws:spring-ws-support:${springVersionWS}"
> implementation "org.springframework.ws:spring-ws-security:${springVersionWS}"
>
> implementation "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}"
> implementation "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
> implementation "com.fasterxml.jackson.core:jackson-annotations:${jacksonVersion}"
> implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:${jacksonVersion}"
>
> implementation "com.auth0:java-jwt:${auth0JwtVersion}"
>
>
> testImplementation "org.springframework.boot:spring-boot-starter-test:${springBootVersion}"
> testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
> testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
> }
>
> test {
> useJUnitPlatform()
> }
>
> springBoot {
> mainClass = "com.MainClass"
> }
> configurations {
> all*.exclude group: 'xml-apis'
> }
> tasks.register("start") {
> dependsOn bootRun
> }
>
> artifacts {
> archives bootJar
> }
>
> publishing {
> publications {
> serverBootJar(MavenPublication) {
> groupId = rootProject.group
> artifactId = "server"
> version = rootProject.version
>
> artifact bootJar
> }
> }
> }
>
> // Docker builds
> String serverName = "server"
> String serverTagShort = calculateShortTag(serverName)
> String serverTagFull = calculateFullTag(serverName)
>
> tasks.register("buildImages", DockerBuildImage) {
> group = "docker"
> dependsOn bootJar
>
> images.add(serverTagShort)
> images.add(serverTagFull)
> inputDir.set(file("."))
> dockerFile.set(file("Dockerfile"))
> dockerRegistryCredentialsForRead
> }
>
> tasks.register("pushImages", DockerPushImage) {
> group = "docker"
> dependsOn buildImages
>
> images.add(serverTagFull)
> }
>
> tasks.register("removeTagShort", DockerRemoveImage) {
> group = "docker"
> targetImageId serverTagShort
> force = true
> onError { exception -> println("Could not find image") }
> }
>
> tasks.register("removeTagFull", DockerRemoveImage) {
> group = "docker"
> targetImageId serverTagFull
> force = true
> onError { exception -> println("Could not find image") }
> }
>
> tasks.register("cleanImages") {
> group = "docker"
> dependsOn removeTagShort
> dependsOn removeTagFull
> }
>
> publish.dependsOn assemble
>
>
> Any ideas?
> Thomas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Project unloadable with Gradle 7.5.1 and NetBeans 16
Posted by Thomas Kellerer <sh...@gmx.net>.
Richard Grin schrieb am 02.12.2022 um 09:20:
> I don't use Gradle.
Lucky you.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Project unloadable with Gradle 7.5.1 and NetBeans 16
Posted by Richard Grin <Ri...@univ-cotedazur.fr>.
Hello Thomas,
I don't use Gradle. Perhaps you will find an explanation by reading
https://lists.apache.org/list.html?dev@netbeans.apache.org (problems
with Gradle in version 16)?
Regards,
Richard
Le 02/12/2022 à 08:51, Thomas Kellerer a écrit :
> Thomas Kellerer schrieb am 02.12.2022 um 08:10:
>> our project switch from Gradle 6.9.x to 7.5.1 and now it doesn't work with NetBeans 16 any more (the most recent "voting candidate")
>> Everything was working fine with Gradle 6.9.x even with the various NetBeans 16 RC versions
>>
>> Whenever I open the project, NetBeans shows the project is unloadable with this message
>>
>> Reason: java.io.NotSerializableException: [extensions.propertyValues]
>>
> More background information:
>
> When opening the project properties it shows "Source/Binary Format 1.5" in the "Sources" section (and I can not change it there)
>
> The project the error message belongs to, is part of a multi-module project. The build.gradle in the root contains this:
>
> plugins {
> id "com.bmuschko.docker-remote-api" version "${dockerRemoteApiPluginVersion}"
> id "maven-publish"
> id "de.undercouch.download" version "${undercouchDownloadVersion}"
> id "io.mateo.cxf-codegen" version "${cxfCodeGenVersion}"
> id "com.github.node-gradle.node" version "${nodePluginVersion}"
> }
>
> apply from: "security/atlas.gradle"
>
> if (project.hasProperty('projVersion')) {
> project.version = project.projVersion
> }
> def version = project.version
>
> task(getVersion) {
> println(project.version)
> }
>
> allprojects {
> apply plugin: "base"
> }
>
> subprojects {
> apply plugin: "maven-publish"
> apply plugin: "com.bmuschko.docker-remote-api"
>
> docker {
> registryCredentials {
> url = projectDockerRegistry
> username = project.findProperty("repository_username")
> password = project.findProperty("repository_password")
> }
> }
>
> ext.dockerRegistryCredentialsForRead = docker {
> registryCredentials {
> url = dockerRegistryForRead
> username = project.findProperty("repository_username")
> password = project.findProperty("repository_password")
> }
> }
>
> ext.calculateShortTag = { String name -> "module-${name}" }
> ext.calculateFullTag = { String name -> "${projectDockerRegistry}/${group}/${name}:${version}" }
>
> plugins.with {
> // All projects (modules) with the JavaPlugin are using Java 11
> withType(JavaPlugin) {
> java {
> sourceCompatibility = JavaVersion.VERSION_11
> targetCompatibility = JavaVersion.VERSION_11
> }
> }
> }
> }
>
> wrapper {
> gradleVersion '7.5.1'
> distributionType Wrapper.DistributionType.ALL
> }
>
>
> So maybe NetBeans doesn't understand the part where the JavaVersion is set for all sub-modules?
>
> Thomas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
--
Richard Grin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Project unloadable with Gradle 7.5.1 and NetBeans 16
Posted by Thomas Kellerer <sh...@gmx.net>.
Thomas Kellerer schrieb am 02.12.2022 um 08:10:
> our project switch from Gradle 6.9.x to 7.5.1 and now it doesn't work with NetBeans 16 any more (the most recent "voting candidate")
> Everything was working fine with Gradle 6.9.x even with the various NetBeans 16 RC versions
>
> Whenever I open the project, NetBeans shows the project is unloadable with this message
>
> Reason: java.io.NotSerializableException: [extensions.propertyValues]
>
More background information:
When opening the project properties it shows "Source/Binary Format 1.5" in the "Sources" section (and I can not change it there)
The project the error message belongs to, is part of a multi-module project. The build.gradle in the root contains this:
plugins {
id "com.bmuschko.docker-remote-api" version "${dockerRemoteApiPluginVersion}"
id "maven-publish"
id "de.undercouch.download" version "${undercouchDownloadVersion}"
id "io.mateo.cxf-codegen" version "${cxfCodeGenVersion}"
id "com.github.node-gradle.node" version "${nodePluginVersion}"
}
apply from: "security/atlas.gradle"
if (project.hasProperty('projVersion')) {
project.version = project.projVersion
}
def version = project.version
task(getVersion) {
println(project.version)
}
allprojects {
apply plugin: "base"
}
subprojects {
apply plugin: "maven-publish"
apply plugin: "com.bmuschko.docker-remote-api"
docker {
registryCredentials {
url = projectDockerRegistry
username = project.findProperty("repository_username")
password = project.findProperty("repository_password")
}
}
ext.dockerRegistryCredentialsForRead = docker {
registryCredentials {
url = dockerRegistryForRead
username = project.findProperty("repository_username")
password = project.findProperty("repository_password")
}
}
ext.calculateShortTag = { String name -> "module-${name}" }
ext.calculateFullTag = { String name -> "${projectDockerRegistry}/${group}/${name}:${version}" }
plugins.with {
// All projects (modules) with the JavaPlugin are using Java 11
withType(JavaPlugin) {
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}
}
}
wrapper {
gradleVersion '7.5.1'
distributionType Wrapper.DistributionType.ALL
}
So maybe NetBeans doesn't understand the part where the JavaVersion is set for all sub-modules?
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists