Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into upstream
  • Loading branch information
wmdietl committed Jan 8, 2025
2 parents 0889550 + 8966778 commit 3f6c4f7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
java: [ '8', '11', '17', '21' ]
java: [ '11', '17', '21', '23-ea' ]

steps:
- uses: actions/checkout@v4
Expand Down
25 changes: 13 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,36 +14,36 @@ plugins {
id 'application'

// To create a fat jar build/libs/...-all.jar, run: ./gradlew shadowJar
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'com.gradleup.shadow' version '8.3.5'

// Error Prone linter
id('net.ltgt.errorprone') version '4.1.0'

// Checker Framework pluggable type-checking
id 'org.checkerframework' version '0.6.45'
id 'org.checkerframework' version '0.6.48'
}

repositories {
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}

ext.errorproneVersion = '2.31.0'

ext {
errorproneVersion = '2.36.0'
isJava11orHigher = JavaVersion.current() >= JavaVersion.VERSION_11
isJava17orHigher = JavaVersion.current() >= JavaVersion.VERSION_17
isJava21orHigher = JavaVersion.current() >= JavaVersion.VERSION_21
}

dependencies {
implementation 'com.google.guava:guava:33.4.0-jre'
implementation 'org.ccil.cowan.tagsoup:tagsoup:1.2.1'
implementation 'xom:xom:1.3.9'

compileOnly "com.google.errorprone:error_prone_annotations:${errorproneVersion}"
errorprone("com.google.errorprone:error_prone_core:${errorproneVersion}")

testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.4'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'

compileOnly "com.google.errorprone:error_prone_annotations:${errorproneVersion}"
errorprone("com.google.errorprone:error_prone_core:${errorproneVersion}")
}

application {
Expand Down Expand Up @@ -89,7 +89,7 @@ if (isJava11orHigher) {
}
}

/// Error Prone linter
// Error Prone linter

tasks.withType(JavaCompile).configureEach {
// "-processing" avoids javac warning "No processor claimed any of these annotations".
Expand All @@ -100,9 +100,10 @@ tasks.withType(JavaCompile).configureEach {
disable('ExtendsObject') // Incorrect when using the Checker Framework
disable('ReferenceEquality') // Use Interning Checker instead.
}
options.errorprone.enabled = isJava17orHigher
}

/// Checker Framework pluggable type-checking
// Checker Framework pluggable type-checking

apply plugin: 'org.checkerframework'

Expand Down Expand Up @@ -161,7 +162,7 @@ checkerFramework {
]
}

/// Javadoc
// Javadoc

// Turn Javadoc warnings into errors.
javadoc {
Expand Down Expand Up @@ -194,7 +195,7 @@ task requireJavadoc(type: JavaExec) {
}
check.dependsOn requireJavadoc

/// Emacs support
// Emacs support

/* Make Emacs TAGS table */
task tags(type: Exec) {
Expand Down

0 comments on commit 3f6c4f7

Please sign in to comment.