File tree 4 files changed +23
-12
lines changed
4 files changed +23
-12
lines changed Original file line number Diff line number Diff line change @@ -18,19 +18,27 @@ $ sdk i java 21.0.4-zulu
18
18
$ sdk u java 21.0.4-zulu
19
19
```
20
20
21
- ### Build & Test
21
+ ### Build & Testing
22
22
23
- ``` bash
24
- $ ./gradlew build
23
+ ``` bash
24
+ $ ./gradlew build
25
+ ```
25
26
26
- # To test, run the sample sandbox project by changing the version in `settings.gradle.kts`
27
- $ ./gradlew publishToMavenLocal
28
- $ ./gradlew -p sandbox :build
29
- ```
27
+ For testing, a separate [ sandbox project] ( /sandbox ) is available with the plugin applied in ` settings.gradle.kts ` .
28
+ First publish the plugin to the local maven repository and then run the sandbox project by setting the ` test.version ` in
29
+ sandbox [ gradle.properties] ( /sandbox/gradle.properties ) .
30
+
31
+ ``` bash
32
+ $ ./gradlew publishToMavenLocal
33
+ # Set the test.version in sandbox/gradle.properties
34
+ $ ./gradlew -p sandbox :build
35
+ $ ./gradlew -p sandbox :dependencyUpdates
36
+ ```
30
37
31
38
### Publishing
32
39
33
- Push a new tag to trigger the [ release] ( https://repo1.maven.org/maven2/dev/suresh/build/ ) workflow.
40
+ Push a new tag to trigger the release workflow and publish the plugin
41
+ to [ maven central] ( https://repo1.maven.org/maven2/dev/suresh/build/ ) . That's it!
34
42
35
43
``` bash
36
44
$ git tag -am " v1.0.0 release" v1.0.0
Original file line number Diff line number Diff line change @@ -18,4 +18,7 @@ kotlin.jvm.target.validation.mode=warning
18
18
semver.project.tagPrefix =v
19
19
semver.checkClean =false
20
20
semver.commitsMaxCount =100
21
- # semver.logOnlyOnRootProject=true
21
+ # semver.logOnlyOnRootProject=true
22
+
23
+ # Sandbox Testing
24
+ test.version =0.5.0
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ kotlin = "2.1.0-Beta1"
4
4
kotlin-ksp = " 2.1.0-Beta1-1.0.25"
5
5
kotlin-jvmtarget = " 21"
6
6
kotlin-dsl-jvmtarget = " 21"
7
- kotlin-api-version = " 2.1 "
7
+ kotlin-api-version = " 1.9 "
8
8
kotlin-lang-version = " 2.1"
9
9
gradle = " 8.10.2"
10
10
java-vendor = " Oracle"
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ pluginManagement {
10
10
resolutionStrategy {
11
11
eachPlugin {
12
12
if (requested.id.id.startsWith(" settings." )) {
13
- useModule(" dev.suresh.build:plugins:0.5.0 " )
13
+ useModule(" dev.suresh.build:plugins:${extra[ " test.version " ]} " )
14
14
}
15
15
}
16
16
}
@@ -26,7 +26,7 @@ dependencyResolutionManagement {
26
26
27
27
versionCatalogs {
28
28
create(" mylibs" ) {
29
- from(" dev.suresh.build:catalog:0.5.0 " )
29
+ from(" dev.suresh.build:catalog:${extra[ " test.version " ]} " )
30
30
version(" java" , " 21" )
31
31
}
32
32
}
You can’t perform that action at this time.
0 commit comments