11plugins {
22 `java- gradle- plugin`
3- `maven- publish`
3+ id(" com.gradle.plugin-publish" ) version " 1.2.1"
4+ id(" com.vanniktech.maven.publish" ) version " 0.34.0"
45}
56
67java {
910}
1011
1112group = " online.sharedtype"
12- version = " 0.14.0-SNAPSHOT"
1313
1414repositories {
1515 mavenCentral()
@@ -25,12 +25,46 @@ dependencies {
2525}
2626
2727gradlePlugin {
28- val greeting by plugins.creating {
29- id = " online.sharedtype.sharedtype-gradle-plugin"
30- implementationClass = " online.sharedtype.gradle.SharedtypeGradlePlugin"
28+ website = " https://github.com/SharedType/sharedtype"
29+ vcsUrl = " https://github.com/SharedType/sharedtype.git"
30+ plugins {
31+ create(" sharedtype" ) {
32+ id = " online.sharedtype.sharedtype-gradle-plugin"
33+ displayName = " SharedType Gradle Plugin"
34+ description = " SharedType Gradle Plugin, SharedType is the tool to generate types from Java to target languages."
35+ tags = listOf (" sharedtype" , " java" , " annotation processing" , " type generation" )
36+ implementationClass = " online.sharedtype.gradle.SharedtypeGradlePlugin"
37+ }
3138 }
3239}
3340
3441tasks.named<Test >(" test" ) {
3542 useJUnitPlatform()
3643}
44+
45+ mavenPublishing {
46+ pom {
47+ name.set(" SharedType Gradle Plugin" )
48+ description.set(" SharedType Gradle Plugin, SharedType is the tool to generate types from Java to target languages." )
49+ inceptionYear.set(" 2024" )
50+ url.set(" https://github.com/SharedType/sharedtype" )
51+ licenses {
52+ license {
53+ name.set(" CC BY 4.0" )
54+ url.set(" https://creativecommons.org/licenses/by/4.0/deed.en" )
55+ distribution.set(" https://creativecommons.org/licenses/by/4.0/deed.en" )
56+ }
57+ }
58+ developers {
59+ developer {
60+ id.set(" cuzfrog" )
61+ name.set(" Cause Chung" )
62+ url.set(" https://github.com/cuzfrog" )
63+ }
64+ }
65+ scm {
66+ url.set(" https://github.com/SharedType/sharedtype" )
67+ connection.set(" scm:git@github.com:SharedType/sharedtype.git" )
68+ }
69+ }
70+ }
0 commit comments