Skip to content

Commit f9fefae

Browse files
committed
update to Kotlin 1.4.30
1 parent caec94f commit f9fefae

File tree

5 files changed

+29
-30
lines changed

5 files changed

+29
-30
lines changed

build.gradle

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ buildscript {
22

33
ext.buildMaven = { p -> repositories { maven { url p } } }
44

5-
65
repositories {
76
mavenLocal()
87
google()
@@ -12,14 +11,12 @@ buildscript {
1211

1312
dependencies {
1413
classpath "de.jensklingenberg:gradle-plugin:1.0.0"
15-
1614
}
17-
1815
}
1916
plugins {
2017
id 'org.jetbrains.kotlin.multiplatform' version '1.4.30'
2118
}
22-
19+
apply plugin: 'compiler.plugin.helloworld'
2320

2421
System.setProperty("kotlin.compiler.execution.strategy", "in-process") // For debugging
2522

@@ -32,10 +29,6 @@ allprojects {
3229
}
3330
}
3431

35-
36-
apply plugin: 'compiler.plugin.helloworld'
37-
38-
3932
helloWorld {
4033
enabled = true
4134
}
@@ -50,8 +43,6 @@ allprojects {
5043
maven { url "https://plugins.gradle.org/m2/" }
5144
google()
5245
jcenter()
53-
54-
5546
}
5647
}
5748

@@ -87,7 +78,6 @@ kotlin {
8778
jvmMain {
8879
dependencies {
8980
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
90-
9181
}
9282
}
9383
jsTest {

buildSrc/compiler-plugin/gradle-plugin/src/main/java/de/jensklingenberg/gradle/HelloWorldGradleSubplugin.kt

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ open class TestCompilerExtension {
1313

1414
class HelloWorldGradleSubPlugin : KotlinCompilerPluginSupportPlugin {
1515

16+
companion object {
17+
const val SERIALIZATION_GROUP_NAME = "de.jensklingenberg"
18+
const val ARTIFACT_NAME = "kotlin-compiler-plugin"
19+
const val NATIVE_ARTIFACT_NAME = "$ARTIFACT_NAME-native"
20+
const val VERSION_NUMBER = "0.0.1"
21+
}
22+
1623
private var gradleExtension : TestCompilerExtension = TestCompilerExtension()
1724

1825
override fun applyToCompilation(kotlinCompilation: KotlinCompilation<*>): Provider<List<SubpluginOption>> {
@@ -40,18 +47,18 @@ class HelloWorldGradleSubPlugin : KotlinCompilerPluginSupportPlugin {
4047
override fun getCompilerPluginId(): String = "helloWorldPlugin"
4148

4249
override fun getPluginArtifact(): SubpluginArtifact = SubpluginArtifact(
43-
groupId = "de.jensklingenberg",
44-
artifactId = "kotlin-compiler-plugin",
45-
version = "0.0.1" // remember to bump this version before any release!
50+
groupId = SERIALIZATION_GROUP_NAME,
51+
artifactId = ARTIFACT_NAME,
52+
version = VERSION_NUMBER // remember to bump this version before any release!
4653
)
4754

4855
override fun isApplicable(kotlinCompilation: KotlinCompilation<*>): Boolean {
4956
return true
5057
}
5158

5259
override fun getPluginArtifactForNative(): SubpluginArtifact = SubpluginArtifact(
53-
groupId = "de.jensklingenberg",
54-
artifactId = "kotlin-compiler-native-plugin",
55-
version = "0.0.1" // remember to bump this version before any release!
60+
groupId = SERIALIZATION_GROUP_NAME,
61+
artifactId = NATIVE_ARTIFACT_NAME,
62+
version = VERSION_NUMBER // remember to bump this version before any release!
5663
)
5764
}

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
apply plugin: "org.jetbrains.kotlin.jvm"
1+
plugins {
2+
id("maven")
3+
id 'org.jetbrains.kotlin.jvm'
4+
}
5+
26
apply plugin: "kotlin-kapt"
3-
apply plugin: "maven"
47

58

69
group = "de.jensklingenberg"
@@ -9,7 +12,7 @@ version = "0.0.1"
912

1013
install {
1114
repositories.mavenInstaller {
12-
pom.artifactId = 'kotlin-compiler-native-plugin'
15+
pom.artifactId = 'kotlin-compiler-plugin-native'
1316
}
1417
}
1518

@@ -21,9 +24,8 @@ dependencies {
2124
implementation "org.jetbrains.kotlin:kotlin-stdlib"
2225
implementation "org.jetbrains.kotlin:kotlin-gradle-plugin-api"
2326
compileOnly "org.jetbrains.kotlin:kotlin-compiler"
24-
// implementation "org.jetbrains.kotlin:kotlin-platform-api:$kotlin_version"
25-
compileOnly "com.google.auto.service:auto-service:1.0-rc6"
26-
kapt "com.google.auto.service:auto-service:1.0-rc6"
27+
compileOnly "com.google.auto.service:auto-service:1.0-rc7"
28+
kapt "com.google.auto.service:auto-service:1.0-rc7"
2729
}
2830

2931
compileKotlin {

buildSrc/compiler-plugin/kotlin-native-plugin/src/main/java/de/jensklingenberg/NativeTestComponentRegistrar.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,5 @@ class NativeTestComponentRegistrar : ComponentRegistrar {
2828
"*** Hello from ***" + it.path
2929
)
3030
}
31-
32-
3331
}
3432
}

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
apply plugin: "org.jetbrains.kotlin.jvm"
1+
plugins {
2+
id("maven")
3+
id 'org.jetbrains.kotlin.jvm'
4+
}
5+
26
apply plugin: "kotlin-kapt"
3-
apply plugin: "maven"
47

58

69
group = "de.jensklingenberg"
@@ -21,9 +24,8 @@ dependencies {
2124
implementation "org.jetbrains.kotlin:kotlin-stdlib"
2225
implementation "org.jetbrains.kotlin:kotlin-gradle-plugin-api"
2326
compileOnly "org.jetbrains.kotlin:kotlin-compiler-embeddable"
24-
// implementation "org.jetbrains.kotlin:kotlin-platform-api:$kotlin_version"
25-
compileOnly "com.google.auto.service:auto-service:1.0-rc6"
26-
kapt "com.google.auto.service:auto-service:1.0-rc6"
27+
compileOnly "com.google.auto.service:auto-service:1.0-rc7"
28+
kapt "com.google.auto.service:auto-service:1.0-rc7"
2729
}
2830

2931
compileKotlin {

0 commit comments

Comments
 (0)