diff --git a/build.gradle b/build.gradle index 70ff99a..0e6582c 100644 --- a/build.gradle +++ b/build.gradle @@ -30,7 +30,7 @@ if (JavaVersion.current() <= JavaVersion.VERSION_22) { repositories { mavenLocal() mavenCentral() - maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' } + maven { url = 'https://oss.sonatype.org/content/repositories/snapshots/' } } ext { @@ -67,7 +67,7 @@ if (! isJava21orHigher) { // define the steps to apply to those files trimTrailingWhitespace() - indentWithSpaces(2) + indentWithSpaces(2) // in Spotless version 7, change to: leadingTabsToSpaces(2) endWithNewline() } java { @@ -78,7 +78,7 @@ if (! isJava21orHigher) { groovyGradle { target '**/*.gradle' greclipse() // which formatter Spotless should use to format .gradle files. - indentWithSpaces(2) + indentWithSpaces(2) // in Spotless version 7, change to: leadingTabsToSpaces(2) trimTrailingWhitespace() // endWithNewline() // Don't want to end empty files with a newline } @@ -182,7 +182,7 @@ javadoc { check.dependsOn javadoc task javadocWeb(type: Javadoc) { - description 'Upload API documentation to website.' + description = 'Upload API documentation to website.' source = sourceSets.main.allJava destinationDir = file("/cse/web/research/plumelib/${project.name}/api") classpath = project.sourceSets.main.compileClasspath @@ -226,6 +226,6 @@ check.dependsOn requireJavadoc /* Make Emacs TAGS table */ task tags(type: Exec) { - description 'Run etags to create an Emacs TAGS table' + description = 'Run etags to create an Emacs TAGS table' commandLine 'bash', '-c', "find src/ -name '*.java' | sort | xargs etags" } diff --git a/gradle/mavencentral.gradle b/gradle/mavencentral.gradle index 1ccc8e1..2c23d78 100644 --- a/gradle/mavencentral.gradle +++ b/gradle/mavencentral.gradle @@ -21,8 +21,8 @@ apply plugin: 'maven-publish' apply plugin: 'signing' -group 'org.plumelib' -version '1.0.9' +group = 'org.plumelib' +version = '1.0.9' ext { packageName = 'require-javadoc' }