File tree Expand file tree Collapse file tree 4 files changed +38
-3
lines changed Expand file tree Collapse file tree 4 files changed +38
-3
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ compileTestKotlin {
2020}
2121
2222build {
23- dependsOn ' :compiler-plugin:kotlin-plugin:install '
23+ dependsOn ' :compiler-plugin:kotlin-plugin:publishToMavenLocal '
2424 dependsOn ' :compiler-plugin:kotlin-native-plugin:publishToMavenLocal'
2525
26- dependsOn ' :compiler-plugin:gradle-plugin:install '
26+ dependsOn ' :compiler-plugin:gradle-plugin:publishToMavenLocal '
2727}
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ plugins {
22 id " org.jetbrains.kotlin.jvm"
33 id " org.jetbrains.kotlin.kapt"
44 id ' java-gradle-plugin'
5+ id(" maven-publish" )
6+
57}
68apply plugin : " maven"
79
@@ -29,3 +31,19 @@ gradlePlugin {
2931dependencies {
3032 implementation " org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.6.20"
3133}
34+
35+
36+ publishing {
37+ publications {
38+ }
39+ repositories {
40+ maven {
41+ name = " MyRepo" // optional target repository name
42+ url = " http://my.org.server/repo/url"
43+ credentials {
44+ username = ' alice'
45+ password = ' my-password'
46+ }
47+ }
48+ }
49+ }
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ plugins {
22 id(" maven" )
33 id ' org.jetbrains.kotlin.jvm'
44 id " org.jetbrains.kotlin.kapt"
5+ id(" maven-publish" )
56
67}
78
@@ -32,3 +33,19 @@ compileKotlin {
3233compileTestKotlin {
3334 kotlinOptions. jvmTarget = " 1.8"
3435}
36+
37+
38+ publishing {
39+ publications {
40+ }
41+ repositories {
42+ maven {
43+ name = " MyRepo" // optional target repository name
44+ url = " http://my.org.server/repo/url"
45+ credentials {
46+ username = ' alice'
47+ password = ' my-password'
48+ }
49+ }
50+ }
51+ }
You can’t perform that action at this time.
0 commit comments