Skip to content

Instantly share code, notes, and snippets.

@KengoTODA
Created July 22, 2020 11:14
Show Gist options
  • Save KengoTODA/9c930004e6e2ffa8f34d2a306357e422 to your computer and use it in GitHub Desktop.
Save KengoTODA/9c930004e6e2ffa8f34d2a306357e422 to your computer and use it in GitHub Desktop.
necessary changes in jspecify subtree
diff --git a/jspecify/build.gradle b/jspecify/build.gradle
index 676ae28..3b21c79 100644
--- a/jspecify/build.gradle
+++ b/jspecify/build.gradle
@@ -1,13 +1,13 @@
plugins {
id 'java-library'
id 'maven-publish'
- id 'com.diffplug.gradle.spotless' version '3.28.1'
- id 'net.ltgt.errorprone' version '1.1.1'
+ id 'com.diffplug.spotless'
+ id 'net.ltgt.errorprone'
id 'org.javamodularity.moduleplugin' version '1.6.0'
}
-apply from: "$rootDir/gradle/format.gradle"
-apply from: "$rootDir/gradle/publish.gradle"
+apply from: "gradle/format.gradle"
+apply from: "gradle/publish.gradle"
repositories { mavenCentral() }
diff --git a/jspecify/gradle/format.gradle b/jspecify/gradle/format.gradle
index f540d3a..6c974d1 100644
--- a/jspecify/gradle/format.gradle
+++ b/jspecify/gradle/format.gradle
@@ -2,12 +2,11 @@ spotless {
java {
removeUnusedImports()
googleJavaFormat()
- licenseHeaderFile "$rootDir/gradle/license-header.java"
+ licenseHeaderFile "gradle/license-header.java"
}
groovyGradle {
target '**/*.gradle'
greclipse()
indentWithSpaces()
- paddedCell()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment