Skip to content

Commit

Permalink
[NETBEANS-5541] Upgrade Gradle Tooling to 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lkishalmi committed Apr 15, 2021
1 parent bf76d65 commit 03773dd
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 14 deletions.
4 changes: 2 additions & 2 deletions extide/gradle/nbproject/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
<code-name-base>org.netbeans.modules.libs.gradle</code-name-base>
<compile-dependency/>
<run-dependency>
<release-version>6</release-version>
<specification-version>6.3</specification-version>
<release-version>7</release-version>
<specification-version>7.0</specification-version>
</run-dependency>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion extide/libs.gradle/external/binaries-list
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
566891D3FE72F69C9038A921BBE6CE255A77D4A1 gradle-tooling-api-6.7.jar
DFC57AE4562914B649BF530C2D9BB22EC9677CF1 gradle-tooling-api-7.0.jar
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Name: Gradle Wrapper
Description: Gradle Tooling API
Version: 6.7
Files: gradle-tooling-api-6.7.jar
Version: 7.0
Files: gradle-tooling-api-7.0.jar
License: Apache-2.0
Origin: Gradle Inc.
URL: https://gradle.org/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Gradle Inc.'s Gradle Tooling API
Copyright 2007-2020 Gradle Inc.
Copyright 2007-2021 Gradle Inc.

This product includes software developed at
Gradle Inc. (https://gradle.org/).
Expand Down
5 changes: 2 additions & 3 deletions extide/libs.gradle/manifest.mf
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Manifest-Version: 1.0
AutoUpdate-Show-In-Client: false
OpenIDE-Module: org.netbeans.modules.libs.gradle/6
OpenIDE-Module: org.netbeans.modules.libs.gradle/7
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/libs/gradle/Bundle.properties
OpenIDE-Module-Specification-Version: 6.8

OpenIDE-Module-Specification-Version: 7.0
2 changes: 1 addition & 1 deletion extide/libs.gradle/nbproject/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ javac.compilerargs=-Xlint -Xlint:-serial
# For more information, please see http://wiki.netbeans.org/SignatureTest
sigtest.gen.fail.on.error=false

release.external/gradle-tooling-api-6.7.jar=modules/gradle/gradle-tooling-api.jar
release.external/gradle-tooling-api-7.0.jar=modules/gradle/gradle-tooling-api.jar
2 changes: 1 addition & 1 deletion extide/libs.gradle/nbproject/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</public-packages>
<class-path-extension>
<runtime-relative-path>gradle/gradle-tooling-api.jar</runtime-relative-path>
<binary-origin>external/gradle-tooling-api-6.7.jar</binary-origin>
<binary-origin>external/gradle-tooling-api-7.0.jar</binary-origin>
</class-path-extension>
</data>
</configuration>
Expand Down
15 changes: 15 additions & 0 deletions java/gradle.java/apichanges.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,21 @@ is the proper place.
<!-- ACTUAL CHANGES BEGIN HERE: -->

<changes>
<change id="gradle-7.0-deprecation">
<api name="gradle.java.api"/>
<summary>Deprecating Gradle 7.0 removed API-s</summary>
<version major="1" minor="13"/>
<date day="10" month="4" year="2021"/>
<author login="lkishalmi"/>
<compatibility semantic="incompatible" deprecation="yes"/>
<description>
<code><a href="@TOP@/org/netbeans/modules/gradle/java/api/GradleJavaSourceSet.html">GradleJavaSourceSet</a></code>
methods <code>getCompileConfigurationName()</code> and <code>getRuntimeConfigurationName()</code>
were deprecated as Gradle 7.0 does no longer supports them. They return <code>null</code> on Gradle 7.0.
</description>
<class package="org.netbeans.modules.gradle.java.api" name="GradleJavaSourceSet"/>
<issue number="NETBEANS-5541"/>
</change>
<change id="run.argument.properties">
<api name="gradle.java.api"/>
<summary>Support for explicit commandline arguments</summary>
Expand Down
2 changes: 1 addition & 1 deletion java/gradle.java/manifest.mf
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ AutoUpdate-Show-In-Client: false
OpenIDE-Module: org.netbeans.modules.gradle.java
OpenIDE-Module-Layer: org/netbeans/modules/gradle/java/layer.xml
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/gradle/java/Bundle.properties
OpenIDE-Module-Specification-Version: 1.12
OpenIDE-Module-Specification-Version: 1.13
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,26 @@ public String getTargetCompatibility(SourceType type) {
return targetCompatibility.getOrDefault(type, getSourcesCompatibility(type));
}

/**
* Returns the name of the configuration used by this SourceSet for compile.
* This method returns an <code>null</code> from Gradle 7.0 as the
* corresponding method has been removed in that version.
* @return the name of the configuration or <code>null</code> if that's not available.
* @deprecated No replacement.
*/
@Deprecated
public String getRuntimeConfigurationName() {
return runtimeConfigurationName;
}

/**
* Returns the name of the configuration used by this SourceSet for runtime.
* This method returns an <code>null</code> from Gradle 7.0 as the
* corresponding method has been removed in that version.
* @return the name of the configuration or <code>null</code> if that's not available.
* @deprecated No replacement.
*/
@Deprecated
public String getCompileConfigurationName() {
return compileConfigurationName;
}
Expand Down
4 changes: 2 additions & 2 deletions java/gradle.test/nbproject/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
<code-name-base>org.netbeans.modules.libs.gradle</code-name-base>
<compile-dependency/>
<run-dependency>
<release-version>6</release-version>
<specification-version>6.3</specification-version>
<release-version>7</release-version>
<specification-version>7.0</specification-version>
</run-dependency>
</dependency>
<dependency>
Expand Down

0 comments on commit 03773dd

Please sign in to comment.