Skip to content

Commit 74a2dd7

Browse files
committed
update gradle
1 parent 0552e39 commit 74a2dd7

File tree

4 files changed

+38
-3
lines changed

4 files changed

+38
-3
lines changed

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

buildSrc/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ compileTestKotlin {
2020
}
2121

2222
build {
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
}

buildSrc/compiler-plugin/gradle-plugin/build.gradle

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}
68
apply plugin: "maven"
79

@@ -29,3 +31,19 @@ gradlePlugin {
2931
dependencies {
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+
}

buildSrc/compiler-plugin/kotlin-plugin/build.gradle

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff 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 {
3233
compileTestKotlin {
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+
}

0 commit comments

Comments
 (0)