File tree 13 files changed +50
-121
lines changed
13 files changed +50
-121
lines changed Original file line number Diff line number Diff line change
1
+ import org.gradle.api.Project
2
+ import org.gradle.api.publish.maven.MavenPublication
3
+
4
+ internal fun MavenPublication.configurePom (
5
+ project : Project
6
+ ) {
7
+ pom {
8
+ name.set(project.name)
9
+ description.set(project.description)
10
+ url.set(" https://github.com/JetBrains/kotlin-wrappers" )
11
+
12
+ licenses {
13
+ license {
14
+ name.set(" The Apache License, Version 2.0" )
15
+ url.set(" http://www.apache.org/licenses/LICENSE-2.0.txt" )
16
+ }
17
+ }
18
+
19
+ developers {
20
+ developer {
21
+ id.set(" JetBrains" )
22
+ name.set(" Leonid Khachaturov" )
23
+
24
+ }
25
+ }
26
+
27
+ scm {
28
+ connection.set(" scm:git:git://github.com/JetBrains/kotlin-wrappers.git" )
29
+ developerConnection.set(
" scm:git:[email protected] :JetBrains/kotlin-wrappers.git" )
30
+ url.set(" https://github.com/JetBrains/kotlin-wrappers" )
31
+ }
32
+ }
33
+ }
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ configure<PublishingExtension> {
28
28
if (name == " jvm" )
29
29
artifact(javadocJar!! .get())
30
30
31
- metadata( )
31
+ configurePom(project )
32
32
}
33
33
34
34
isKotlinJsProject ->
@@ -41,7 +41,7 @@ configure<PublishingExtension> {
41
41
42
42
artifact(tasks.getByName<Zip >(" jsLegacySourcesJar" ))
43
43
44
- metadata( )
44
+ configurePom(project )
45
45
}
46
46
}
47
47
}
@@ -55,31 +55,10 @@ configure<PublishingExtension> {
55
55
}
56
56
}
57
57
58
- fun MavenPublication.metadata () {
59
- pom {
60
- name.set(project.name)
61
- description.set(project.description)
62
- url.set(" https://github.com/JetBrains/kotlin-wrappers" )
58
+ signing {
59
+ setRequired({
60
+ gradle.taskGraph.hasTask(" publish" )
61
+ })
63
62
64
- licenses {
65
- license {
66
- name.set(" The Apache License, Version 2.0" )
67
- url.set(" http://www.apache.org/licenses/LICENSE-2.0.txt" )
68
- }
69
- }
70
-
71
- developers {
72
- developer {
73
- id.set(" JetBrains" )
74
- name.set(" Leonid Khachaturov" )
75
-
76
- }
77
- }
78
-
79
- scm {
80
- connection.set(" scm:git:git://github.com/JetBrains/kotlin-wrappers.git" )
81
- developerConnection.set(
" scm:git:[email protected] :JetBrains/kotlin-wrappers.git" )
82
- url.set(" https://github.com/JetBrains/kotlin-wrappers" )
83
- }
84
- }
63
+ sign(publishing.publications)
85
64
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
kotlin(" multiplatform" )
3
- `publishing - conventions`
3
+ `publish - conventions`
4
4
}
5
5
6
6
kotlin {
@@ -35,11 +35,3 @@ kotlin {
35
35
}
36
36
}
37
37
}
38
-
39
- signing {
40
- setRequired({
41
- gradle.taskGraph.hasTask(" publish" )
42
- })
43
-
44
- sign(publishing.publications)
45
- }
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
kotlin(" js" )
3
- `publishing - conventions`
3
+ `publish - conventions`
4
4
}
5
-
6
- signing {
7
- setRequired({
8
- gradle.taskGraph.hasTask(" publish" )
9
- })
10
-
11
- sign(publishing.publications)
12
- }
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
kotlin(" js" )
3
- `publishing - conventions`
3
+ `publish - conventions`
4
4
}
5
5
6
6
dependencies {
7
7
api(npmv(" mocha" ))
8
8
}
9
-
10
- signing {
11
- setRequired({
12
- gradle.taskGraph.hasTask(" publish" )
13
- })
14
-
15
- sign(publishing.publications)
16
- }
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
kotlin(" js" )
3
- `publishing - conventions`
3
+ `publish - conventions`
4
4
}
5
5
6
6
dependencies {
@@ -11,11 +11,3 @@ dependencies {
11
11
12
12
api(npmv(" react-dom" ))
13
13
}
14
-
15
- signing {
16
- setRequired({
17
- gradle.taskGraph.hasTask(" publish" )
18
- })
19
-
20
- sign(publishing.publications)
21
- }
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
kotlin(" js" )
3
- `publishing - conventions`
3
+ `publish - conventions`
4
4
}
5
5
6
6
dependencies {
@@ -10,11 +10,3 @@ dependencies {
10
10
11
11
api(npmv(" react-redux" ))
12
12
}
13
-
14
- signing {
15
- setRequired({
16
- gradle.taskGraph.hasTask(" publish" )
17
- })
18
-
19
- sign(publishing.publications)
20
- }
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
kotlin(" js" )
3
- `publishing - conventions`
3
+ `publish - conventions`
4
4
}
5
5
6
6
dependencies {
@@ -9,11 +9,3 @@ dependencies {
9
9
10
10
api(npmv(" react-router-dom" ))
11
11
}
12
-
13
- signing {
14
- setRequired({
15
- gradle.taskGraph.hasTask(" publish" )
16
- })
17
-
18
- sign(publishing.publications)
19
- }
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
kotlin(" js" )
3
- `publishing - conventions`
3
+ `publish - conventions`
4
4
}
5
5
6
6
dependencies {
@@ -9,11 +9,3 @@ dependencies {
9
9
10
10
api(npmv(" react-table" ))
11
11
}
12
-
13
- signing {
14
- setRequired({
15
- gradle.taskGraph.hasTask(" publish" )
16
- })
17
-
18
- sign(publishing.publications)
19
- }
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
kotlin(" js" )
3
- `publishing - conventions`
3
+ `publish - conventions`
4
4
}
5
5
6
6
dependencies {
7
7
api(project(" :kotlin-extensions" ))
8
8
9
9
api(npmv(" react" ))
10
10
}
11
-
12
- signing {
13
- setRequired({
14
- gradle.taskGraph.hasTask(" publish" )
15
- })
16
-
17
- sign(publishing.publications)
18
- }
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
kotlin(" js" )
3
3
kotlin(" plugin.serialization" )
4
- `publishing - conventions`
4
+ `publish - conventions`
5
5
}
6
6
7
7
dependencies {
@@ -10,11 +10,3 @@ dependencies {
10
10
11
11
api(npmv(" redux" ))
12
12
}
13
-
14
- signing {
15
- setRequired({
16
- gradle.taskGraph.hasTask(" publish" )
17
- })
18
-
19
- sign(publishing.publications)
20
- }
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
kotlin(" js" )
3
- `publishing - conventions`
3
+ `publish - conventions`
4
4
}
5
5
6
6
dependencies {
@@ -15,11 +15,3 @@ dependencies {
15
15
api(npm(" inline-style-prefixer" , " ^6.0.0" ))
16
16
api(npm(" styled-components" , " ^5.2.0" ))
17
17
}
18
-
19
- signing {
20
- setRequired({
21
- gradle.taskGraph.hasTask(" publish" )
22
- })
23
-
24
- sign(publishing.publications)
25
- }
You can’t perform that action at this time.
0 commit comments