Commit e8caec1 1 parent a97916b commit e8caec1 Copy full SHA for e8caec1
File tree 8 files changed +749
-27
lines changed
plugins/src/main/kotlin/plugins
8 files changed +749
-27
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,14 @@ $ sdk i java 21.0.4-zulu
18
18
$ sdk u java 21.0.4-zulu
19
19
```
20
20
21
- ### Build
21
+ ### Build & Test
22
22
23
23
``` bash
24
24
$ ./gradlew build
25
+
26
+ # To test, run the sample sandbox project by changing the version in `settings.gradle.kts`
27
+ $ ./gradlew publishToMavenLocal
28
+ $ ./gradlew -p sandbox :build
25
29
```
26
30
27
31
### Publishing
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ karakum = "1.0.0-alpha.40-K2"
51
51
seskar = " 3.42.0"
52
52
spring-boot = " 3.3.3"
53
53
spring-depmgmt = " 1.1.6"
54
- ktor = " 3.0.0-rc-1 "
54
+ ktor = " 3.0.0-rc-2 "
55
55
ktor-cohort = " 2.5.1"
56
56
otel = " 1.42.1"
57
57
otel-instr = " 2.8.0"
Original file line number Diff line number Diff line change @@ -16,33 +16,8 @@ plugins {
16
16
if (isRootProject) {
17
17
apply (plugin = " io.github.gradle-nexus.publish-plugin" )
18
18
19
- val nativeBuild: String? by project
20
- val composeBuild: String? by project
21
- val springBoot: String? by project
22
-
23
19
nmcp {
24
20
publishAggregation {
25
- project(" :shared" )
26
- project(" :dep-mgmt:bom" )
27
- project(" :dep-mgmt:catalog" )
28
- project(" :meta:ksp:processor" )
29
- project(" :meta:compiler:plugin" )
30
- project(" :backend:jvm" )
31
- project(" :backend:data" )
32
- project(" :backend:profiling" )
33
- project(" :backend:security" )
34
- project(" :web" )
35
- if (nativeBuild.toBoolean()) {
36
- project(" :backend:native" )
37
- }
38
- if (springBoot.toBoolean()) {
39
- project(" :backend:boot" )
40
- }
41
- if (composeBuild.toBoolean()) {
42
- project(" :compose:cmp" )
43
- // project(":compose:html")
44
- }
45
-
46
21
username = mavenCentralUsername
47
22
password = mavenCentralPassword
48
23
publicationType = " AUTOMATIC"
Original file line number Diff line number Diff line change
1
+ import common.*
2
+
3
+ plugins {
4
+ plugins.root
5
+ plugins.kotlin.jvm
6
+ id(" com.gradleup.shadow" )
7
+ }
8
+
9
+ application { mainClass = " MainKt" }
Original file line number Diff line number Diff line change
1
+ # # Gradle
2
+ org.gradle.jvmargs =-Xmx2g
3
+ org.gradle.parallel =true
4
+ org.gradle.caching =true
5
+ org.gradle.daemon =true
6
+ org.gradle.configureondemand =true
7
+ org.gradle.configuration-cache =false
8
+ org.gradle.configuration-cache.problems =warn
9
+ org.gradle.kotlin.dsl.allWarningsAsErrors =true
10
+ org.gradle.unsafe.isolated-projects =false
11
+ # org.gradle.logging.stacktrace=all
12
+
13
+ # # Kotlin
14
+ kotlin.code.style =official
15
+ kotlin.jvm.target.validation.mode =warning
16
+
17
+ # Project
18
+ semver.project.tagPrefix =v
19
+ semver.checkClean =false
20
+ semver.commitsMaxCount =100
21
+ # semver.logOnlyOnRootProject=true
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change
1
+ @file:Suppress(" UnstableApiUsage" )
2
+
3
+ pluginManagement {
4
+ repositories {
5
+ gradlePluginPortal()
6
+ mavenCentral()
7
+ mavenLocal()
8
+ }
9
+
10
+ resolutionStrategy {
11
+ eachPlugin {
12
+ if (requested.id.id.startsWith(" settings." )) {
13
+ useModule(" dev.suresh.build:plugins:0.5.0" )
14
+ }
15
+ }
16
+ }
17
+ }
18
+
19
+ dependencyResolutionManagement {
20
+ repositories {
21
+ mavenCentral()
22
+ gradlePluginPortal()
23
+ mavenLocal()
24
+ }
25
+ repositoriesMode = RepositoriesMode .FAIL_ON_PROJECT_REPOS
26
+
27
+ versionCatalogs {
28
+ create(" mylibs" ) {
29
+ from(" dev.suresh.build:catalog:0.5.0" )
30
+ version(" java" , " 21" )
31
+ }
32
+ }
33
+ }
34
+
35
+ plugins { id(" settings.repos" ) }
36
+
37
+ enableFeaturePreview(" TYPESAFE_PROJECT_ACCESSORS" )
38
+
39
+ enableFeaturePreview(" STABLE_CONFIGURATION_CACHE" )
40
+
41
+ rootProject.name = " sandbox"
Original file line number Diff line number Diff line change
1
+ fun main () {
2
+ println (" Hello, sandbox project!" )
3
+ }
You can’t perform that action at this time.
0 commit comments