@@ -8,81 +8,6 @@ plugins {
88
99
1010subprojects {
11- plugins.withType<JavaPlugin > {
12-
13- configure<JavaPluginExtension > {
14- withSourcesJar()
15- withJavadocJar()
16- }
17-
18- tasks.withType<Test > {
19- useJUnitPlatform()
20- systemProperty(" java.io.tmpdir" , layout.buildDirectory.dir(" tmp" ).get().asFile.absolutePath)
21- }
22-
23- plugins.withType<MavenPublishPlugin > {
24-
25- with (the<PublishingExtension >()) {
26- publications.create<MavenPublication >(" mavenJava" ) {
27- from(components[" java" ])
28- }
29- }
30- }
31- }
32-
33-
34- plugins.withType<MavenPublishPlugin > {
35-
36- plugins.apply (SigningPlugin ::class )
37-
38- val publishing = the<PublishingExtension >()
39-
40- publishing.publications.withType<MavenPublication > {
41- pom {
42- val githubRepo = providers.gradleProperty(" githubRepo" )
43- val githubUrl = githubRepo.map { " https://github.com/$it " }
44-
45- name.set(providers.gradleProperty(" projectName" ))
46- description.set(providers.gradleProperty(" projectDescription" ))
47- url.set(providers.gradleProperty(" projectUrl" ))
48- licenses {
49- license {
50- name.set(providers.gradleProperty(" projectLicenseName" ))
51- url.set(providers.gradleProperty(" projectLicenseUrl" ))
52- }
53- }
54- developers {
55- developer {
56- name.set(providers.gradleProperty(" developerName" ))
57- email.set(providers.gradleProperty(" developerEmail" ))
58- url.set(providers.gradleProperty(" developerUrl" ))
59- }
60- }
61- scm {
62- url.set(githubUrl.map { " $it /tree/master" })
63- connection.set(githubRepo.map { " scm:git:git://github.com/$it .git" })
64- developerConnection.set(githubRepo.map { " scm:git:ssh://github.com:$it .git" })
65- }
66- issueManagement {
67- url.set(githubUrl.map { " $it /issues" })
68- system.set(" GitHub" )
69- }
70- }
71- }
72-
73- publishing.repositories {
74- maven {
75- name = " local"
76- url = file(layout.buildDirectory.dir(" repos/releases" )).toURI()
77- }
78- }
79-
80- with (the<SigningExtension >()) {
81- sign(publishing.publications)
82- }
83- }
84-
85-
8611 plugins.withId(" org.jetbrains.dokka" ) {
8712
8813 val dokkaVersion: String by extra
@@ -112,7 +37,6 @@ subprojects {
11237 }
11338}
11439
115-
11640nexusPublishing.repositories {
11741 sonatype()
11842}
0 commit comments