@@ -7,26 +7,57 @@ plugins {
77 kotlin(" kapt" ) version Versions .Kotlin apply false
88 kotlin(" plugin.spring" ) version Versions .Kotlin apply false
99 id(" io.spring.dependency-management" ) version Versions .DependencyManagement apply false
10- id(" io.github.gradle-nexus.publish-plugin" ) version Versions .GradleNexusPublish
1110 id(" com.tencent.devops.release" ) version Versions .DevopsReleasePlugin
11+ id(" com.tencent.devops.publish" ) version Versions .DevopsReleasePlugin
1212}
1313
14+ val projectVersion = rootProject.file(" version.txt" ).readText()
15+
1416allprojects {
15- group = Release .Group
16- version = Release .Version
17+ group = " com.tencent.devops"
18+ version = projectVersion
19+
20+ apply (plugin = " com.tencent.devops.publish" )
1721
1822 repositories {
1923 mavenCentral()
2024 jcenter()
2125 gradlePluginPortal()
2226 }
23- }
2427
25- nexusPublishing {
26- repositories {
27- sonatype {
28- username.set(System .getenv(" SONATYPE_USERNAME" ))
29- password.set(System .getenv(" SONATYPE_PASSWORD" ))
28+ publishing {
29+ publications {
30+ withType<MavenPublication > {
31+ pom {
32+ name.set(project.name)
33+ description.set(project.description ? : project.name)
34+ url.set(" https://github.com/bkdevops-projects/devops-framework" )
35+ licenses {
36+ license {
37+ name.set(" The MIT License (MIT)" )
38+ url.set(" https://opensource.org/licenses/MIT" )
39+ }
40+ }
41+ organization {
42+ name.set(" Tencent BK-CI" )
43+ url.set(" https://github.com/Tencent/bk-ci" )
44+ }
45+ developers {
46+ developer {
47+ name.set(" blueking" )
48+ email.set(" contactus_bk@tencent.com" )
49+ url.set(" https://github.com/TencentBlueKing" )
50+ roles.set(listOf (" Java Developer" ))
51+ }
52+ }
53+ scm {
54+ connection.set(" scm:git:git://github.com/bkdevops-projects/devops-framework.git" )
55+ developerConnection.set(" scm:git:ssh://github.com/bkdevops-projects/devops-framework.git" )
56+ url.set(" https://github.com/bkdevops-projects/devops-framework" )
57+ }
58+ }
59+
60+ }
3061 }
3162 }
3263}
0 commit comments