Skip to content

Commit be227e4

Browse files
committed
gradle: upgrade gradle plugin remove deprecation warning and error on 9.x'
1 parent 3c83e95 commit be227e4

File tree

11 files changed

+299
-178
lines changed

11 files changed

+299
-178
lines changed

modules/jooby-gradle-plugin/README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
1-
# How to test locally
1+
# Build
22

3-
- First fun `mvn clean install -P gradlePluin`
3+
# Build everything from maven
4+
5+
- `mvn clean install -P gradlePluin`
6+
7+
# Build just the project
8+
9+
- Run at least once `mvn clean install -P gradlePluin`
10+
- `./gradlew build -PjoobyVersion=${project.version}` (project.version is the current version of project built in previous step)
11+
12+
# Test changes locally
13+
14+
- First run `mvn clean install -P gradlePluin`
415
- Previous step install plugin in `.m2/repository`
516
- Creates a gradle project
617
- Go to `settings.gradle` and add these lines
Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// First, apply the publishing plugin
22
plugins {
33
id "maven-publish"
4-
id "com.gradle.plugin-publish" version "0.21.0"
4+
id "com.gradle.plugin-publish" version "2.0.0"
55
id "java-gradle-plugin"
66
}
77

@@ -31,41 +31,23 @@ dependencies {
3131

3232
// Use java-gradle-plugin to generate plugin descriptors and specify plugin ids
3333
gradlePlugin {
34-
plugins {
35-
joobyRun {
36-
id = 'io.jooby.run'
37-
implementationClass = 'io.jooby.gradle.JoobyPlugin'
38-
}
39-
openAPI {
40-
id = 'io.jooby.openAPI'
41-
implementationClass = 'io.jooby.gradle.JoobyPlugin'
42-
43-
dependencies {
44-
45-
}
46-
}
47-
}
48-
}
49-
50-
// The configuration example below shows the minimum required properties
51-
// configured to publish your plugin to the plugin portal
52-
pluginBundle {
5334
website = 'https://jooby.io'
5435
vcsUrl = 'https://github.com/jooby-project/jooby'
55-
tags = ['jooby', 'run']
5636
description = 'Jooby is a modern, performant and easy to use web framework for Java and Kotlin ' +
5737
'built on top of your favorite web server. The joobyRun task allows to restart your ' +
5838
'application on code changes without exiting the JVM'
59-
6039
plugins {
6140
joobyRun {
62-
// id is captured from java-gradle-plugin configuration
41+
id = 'io.jooby.run'
42+
implementationClass = 'io.jooby.gradle.JoobyPlugin'
6343
displayName = 'Jooby Run plugin'
44+
tags = ['jooby', 'run']
6445
}
65-
6646
openAPI {
67-
// id is captured from java-gradle-plugin configuration
47+
id = 'io.jooby.openAPI'
48+
implementationClass = 'io.jooby.gradle.JoobyPlugin'
6849
displayName = 'Jooby OpenAPI plugin'
50+
tags = ['jooby', 'openAPI']
6951
}
7052
}
7153
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.gradle.configuration-cache=true
-8.75 KB
Binary file not shown.

modules/jooby-gradle-plugin/gradle/wrapper/gradle-wrapper.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
36
zipStoreBase=GRADLE_USER_HOME
47
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip

0 commit comments

Comments
 (0)