File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change
1
+ import java.net.URI
2
+
1
3
plugins {
4
+ `maven- publish`
2
5
`java- gradle- plugin`
3
6
kotlin(" jvm" ) version " 1.8.20-Beta"
4
7
kotlin(" plugin.serialization" ) version " 1.8.0"
5
8
}
6
9
10
+ group = " com.github.steanky"
11
+ version = " 0.1.0"
12
+
7
13
val functionalTest: SourceSet by sourceSets.creating
8
14
9
15
gradlePlugin {
@@ -30,6 +36,8 @@ dependencies {
30
36
" functionalTestImplementation" (" org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.4.1" )
31
37
" functionalTestRuntimeOnly" (" org.junit.jupiter:junit-jupiter-engine:5.9.0" )
32
38
" functionalTestImplementation" (project)
39
+
40
+ println (project.name)
33
41
}
34
42
35
43
val functionalTestTask = tasks.register<Test >(" functionalTest" ) {
@@ -51,4 +59,24 @@ kotlin {
51
59
jvmToolchain {
52
60
languageVersion.set(JavaLanguageVersion .of(17 ))
53
61
}
62
+ }
63
+
64
+ publishing {
65
+ publications {
66
+ create<MavenPublication >(" maven" ) {
67
+ from(components[" java" ])
68
+ }
69
+ }
70
+
71
+ repositories {
72
+ maven {
73
+ name = project.name
74
+ url = URI .create(" https://maven.cloudsmith.io/steanky/element/" )
75
+
76
+ credentials {
77
+ username = System .getenv(" CLOUDSMITH_USERNAME" )
78
+ password = System .getenv(" CLOUDSMITH_PASSWORD" )
79
+ }
80
+ }
81
+ }
54
82
}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ plugins {
3
3
}
4
4
5
5
group = " com.github.steanky"
6
- version = " 0.13.3 "
6
+ version = " 0.14.0 "
7
7
8
8
java {
9
9
toolchain.languageVersion.set(JavaLanguageVersion .of(17 ))
You can’t perform that action at this time.
0 commit comments