Skip to content

Commit

Permalink
Update Gradle Tooling API to 8.6-rc-1
Browse files Browse the repository at this point in the history
  • Loading branch information
lkishalmi committed Jan 7, 2024
1 parent b2db3a6 commit fb75624
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public final class GradleDistributionManager {
private static final Pattern DIST_VERSION_PATTERN = Pattern.compile(".*(gradle-(\\d+\\.\\d+.*))-(bin|all)\\.zip"); //NOI18N
private static final Set<String> VERSION_BLACKLIST = new HashSet<>(Arrays.asList("2.3", "2.13")); //NOI18N
private static final Map<File, GradleDistributionManager> CACHE = new WeakHashMap<>();
private static final GradleVersion MINIMUM_SUPPORTED_VERSION = GradleVersion.version("2.0"); //NOI18N
private static final GradleVersion MINIMUM_SUPPORTED_VERSION = GradleVersion.version("3.0"); //NOI18N
private static final GradleVersion[] JDK_COMPAT = new GradleVersion[]{
GradleVersion.version("4.2.1"), // JDK-9
GradleVersion.version("4.7"), // JDK-10
Expand All @@ -103,6 +103,8 @@ public final class GradleDistributionManager {
GradleVersion.version("8.5"), // JDK-21
};

private static final GradleVersion LAST_KNOWN_GRADLE = GradleVersion.version("8.6"); //NOI18N

final File gradleUserHome;

private GradleDistributionManager(File gradleUserHome) {
Expand Down Expand Up @@ -496,10 +498,9 @@ public String getVersion() {
*/
public boolean isCompatibleWithJava(int jdkMajorVersion) {

GradleVersion lastKnown = JDK_COMPAT[JDK_COMPAT.length - 1];
// Optimistic bias, if the GradleVersion is newer than the last NB
// knows, we say it's compatible with any JDK
return lastKnown.compareTo(version.getBaseVersion()) < 0
return LAST_KNOWN_GRADLE.compareTo(version.getBaseVersion()) < 0
|| jdkMajorVersion <= lastSupportedJava();
}

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 @@ -15,4 +15,4 @@
# specific language governing permissions and limitations
# under the License.

ADAA3E825C608D2428888126CF4D1DDD5B5203D6 https://repo.gradle.org/artifactory/libs-releases/org/gradle/gradle-tooling-api/8.4/gradle-tooling-api-8.4.jar gradle-tooling-api-8.4.jar
36D0655781DD8645C834313FE8842FB5E8577925 https://repo.gradle.org/artifactory/libs-releases/org/gradle/gradle-tooling-api/8.6-rc-1/gradle-tooling-api-8.6-rc-1.jar gradle-tooling-api-8.6-rc-1.jar
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Name: Gradle Tooling API
Description: Gradle Tooling API
Version: 8.4
Files: gradle-tooling-api-8.4.jar
Version: 8.6-rc-1
Files: gradle-tooling-api-8.6-rc-1.jar
License: Apache-2.0
Origin: Gradle Inc.
URL: https://gradle.org/
Expand Down
2 changes: 1 addition & 1 deletion extide/libs.gradle/manifest.mf
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ Manifest-Version: 1.0
AutoUpdate-Show-In-Client: false
OpenIDE-Module: org.netbeans.modules.libs.gradle/8
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/libs/gradle/Bundle.properties
OpenIDE-Module-Specification-Version: 8.5
OpenIDE-Module-Specification-Version: 8.6
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-8.4.jar=modules/gradle/gradle-tooling-api.jar
release.external/gradle-tooling-api-8.6-rc-1.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-8.4.jar</binary-origin>
<binary-origin>external/gradle-tooling-api-8.6-rc-1.jar</binary-origin>
</class-path-extension>
</data>
</configuration>
Expand Down

0 comments on commit fb75624

Please sign in to comment.