File tree 2 files changed +29
-2
lines changed
2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,15 @@ dependencies {
11
11
12
12
annotationProcessor ( libs.lombok )
13
13
}
14
+
15
+ publishing {
16
+ publications {
17
+ create<MavenPublication >(" maven" ) {
18
+ groupId = project.group.toString()
19
+ artifactId = project.name
20
+ version = project.version.toString()
21
+
22
+ from(components[" java" ])
23
+ }
24
+ }
25
+ }
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
java
3
3
`java- library`
4
+ `maven- publish`
4
5
id ( " com.diffplug.spotless" )
5
6
}
6
7
7
- group = " de.bluecolored.bluemap "
8
+ group = " de.bluecolored"
8
9
version = gitVersion()
9
10
10
11
repositories {
@@ -31,7 +32,7 @@ tasks.withType(AbstractArchiveTask::class).configureEach {
31
32
}
32
33
33
34
java {
34
- toolchain.languageVersion.set( JavaLanguageVersion .of(16 ) )
35
+ toolchain.languageVersion = JavaLanguageVersion .of(21 )
35
36
withSourcesJar()
36
37
withJavadocJar()
37
38
}
@@ -61,3 +62,17 @@ spotless {
61
62
trimTrailingWhitespace()
62
63
}
63
64
}
65
+
66
+ publishing {
67
+ repositories {
68
+ maven {
69
+ name = " bluecolored"
70
+ url = uri( " https://repo.bluecolored.de/releases" )
71
+
72
+ credentials {
73
+ username = project.findProperty(" bluecoloredUsername" ) as String? ? : System .getenv(" BLUECOLORED_USERNAME" )
74
+ password = project.findProperty(" bluecoloredPassword" ) as String? ? : System .getenv(" BLUECOLORED_PASSWORD" )
75
+ }
76
+ }
77
+ }
78
+ }
You can’t perform that action at this time.
0 commit comments