File tree Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 1
1
plugins {
2
- id ' com.gradle.plugin-publish' version ' 0.15.0'
2
+ id ' com.gradle.plugin-publish' version ' 0.18.0'
3
+ id ' maven-publish'
4
+ id ' java-gradle-plugin'
5
+ id ' org.jetbrains.kotlin.jvm'
3
6
}
4
7
5
- apply plugin : " java-gradle-plugin"
6
- apply plugin : " org.jetbrains.kotlin.jvm"
7
- apply plugin : " maven"
8
8
apply from : rootProject. file(' gradle/utils/embedded.gradle' )
9
9
10
10
pluginBundle {
@@ -26,10 +26,12 @@ pluginBundle {
26
26
}
27
27
}
28
28
29
- install {
30
- repositories {
31
- mavenInstaller {
32
- pom. artifactId = ' kotlin-object-java-serialization'
29
+ publishing {
30
+ afterEvaluate {
31
+ publications {
32
+ withType(MavenPublication ) {
33
+ artifactId " kotlin-object-java-serialization"
34
+ }
33
35
}
34
36
}
35
37
}
Original file line number Diff line number Diff line change 1
1
package me.shika
2
2
3
3
import org.gradle.api.Project
4
- import org.gradle.api.internal.provider.DefaultListProperty
5
4
import org.gradle.api.provider.Provider
6
5
import org.jetbrains.kotlin.gradle.plugin.KotlinCompilation
7
6
import org.jetbrains.kotlin.gradle.plugin.KotlinCompilerPluginSupportPlugin
@@ -21,7 +20,7 @@ class ObjectSerializationPlugin : KotlinCompilerPluginSupportPlugin {
21
20
val project = kotlinCompilation.target.project
22
21
val extension = project.extensions.findByType(ObjectSerializationExtension ::class .java) ? : ObjectSerializationExtension ()
23
22
24
- return DefaultListProperty (SubpluginOption ::class .java).apply {
23
+ return project.objects.listProperty (SubpluginOption ::class .java).apply {
25
24
add(
26
25
SubpluginOption (
27
26
key = " enabled" ,
Original file line number Diff line number Diff line change 1
1
# Wed Dec 18 22:46:33 GMT 2019
2
- distributionUrl =https\://services.gradle.org/distributions/gradle-6.1.1 -all.zip
2
+ distributionUrl =https\://services.gradle.org/distributions/gradle-7.3 -all.zip
3
3
distributionBase =GRADLE_USER_HOME
4
4
distributionPath =wrapper/dists
5
5
zipStorePath =wrapper/dists
You can’t perform that action at this time.
0 commit comments