Skip to content

Commit

Permalink
Bump to Gradle 8.10 and fix deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte committed Oct 14, 2024
1 parent 933f0b4 commit 4419595
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 17 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ For a simple project you only need to apply the licenser plugin to your project:

```gradle
plugins {
id 'org.cadixdev.licenser' version '0.6.1'
id 'net.neoforged.licenser' version '0.7.0'
}
```

You can find [available versions](https://projects.neoforged.net/neoforged/licenser) at the NeoForged projects listing.

This will apply the `LICENSE` file found in the project directory to all common source file types known to licenser.


Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ plugins {
id 'signing'
id 'maven-publish'
id 'org.cadixdev.licenser' version '0.5.1'
id 'net.neoforged.gradleutils' version '3.0.0-alpha.10'
id 'net.neoforged.gradleutils' version '3.0.0'
}

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
languageVersion.set(JavaLanguageVersion.of(17))
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 4 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ pluginManagement {
}
}

plugins {
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0'
}

rootProject.name = 'licenser'
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,11 @@ class LicenserPluginFunctionalTest extends Specification {

static final def standardArguments = ["--warning-mode", "fail", "--stacktrace"].asImmutable()

static final def configurationCacheTestMatrix = [
// TODO: restore android plugin once versions that support configuration cache are available
static final def testMatrix = [
/* gradleVersion | androidVersion | extraArgs */
[ "7.0.2", null, ["--configuration-cache"] ],
[ "7.1", null, ["--configuration-cache"] ],
//[ "8.4", null, ["--configuration-cache"] ], we need to fix some warnings
[ "8.10.2", null, ["--configuration-cache"] ],
].asImmutable()

static final def testMatrix = ([
/* gradleVersion | androidVersion | extraArgs */
//[ "5.6.4", "3.6.4", [] ],
//[ "6.8.3", "4.1.0", [] ],
] + configurationCacheTestMatrix).asImmutable()

File tempDir() {
return temporaryFolder
}
Expand Down
3 changes: 1 addition & 2 deletions src/main/groovy/org/cadixdev/gradle/licenser/Licenser.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ import org.gradle.api.tasks.SourceSet
import org.gradle.api.tasks.TaskProvider
import org.gradle.api.tasks.util.PatternSet
import org.gradle.language.base.plugins.LifecycleBasePlugin
import org.gradle.util.ConfigureUtil

class Licenser implements Plugin<Project> {

Expand Down Expand Up @@ -222,7 +221,7 @@ class Licenser implements Plugin<Project> {
task.charset.set(charset)
task.skipExistingHeaders.set(skipExisting)
if (target != null) {
ConfigureUtil.configure(target, task)
task.configure(target)
}
}
}
Expand Down

0 comments on commit 4419595

Please sign in to comment.