File tree 2 files changed +25
-4
lines changed
2 files changed +25
-4
lines changed Original file line number Diff line number Diff line change 1
1
buildscript {
2
2
ext. kotlin_version = ' 1.2.0'
3
+ ext. publish_version = 0.1
3
4
4
5
repositories {
5
6
jcenter()
@@ -9,10 +10,11 @@ buildscript {
9
10
}
10
11
}
11
12
12
- version ' 1.0-SNAPSHOT '
13
+ version publish_version
13
14
14
15
apply plugin : ' java'
15
16
apply plugin : ' kotlin'
17
+ apply plugin : ' maven-publish'
16
18
17
19
sourceCompatibility = 1.8
18
20
@@ -36,4 +38,24 @@ compileKotlin {
36
38
}
37
39
compileTestKotlin {
38
40
kotlinOptions. jvmTarget = " 1.8"
41
+ }
42
+
43
+ task sourceJar (type : Jar ) {
44
+ from sourceSets. main. kotlin
45
+ }
46
+
47
+ publishing {
48
+ publications {
49
+ maven(MavenPublication ) {
50
+ groupId ' de.rakhman.webextensions-declarations'
51
+ artifactId ' webextensions-declarations-generator'
52
+ version publish_version
53
+
54
+ from components. java
55
+
56
+ artifact sourceJar {
57
+ classifier " sources"
58
+ }
59
+ }
60
+ }
39
61
}
Original file line number Diff line number Diff line change 1
- version ' 0.1 '
1
+ version publish_version
2
2
3
3
buildscript {
4
4
repositories {
@@ -28,13 +28,12 @@ task sourceJar(type: Jar) {
28
28
from sourceSets. main. kotlin
29
29
}
30
30
31
-
32
31
publishing {
33
32
publications {
34
33
maven(MavenPublication ) {
35
34
groupId ' de.rakhman.webextensions-declarations'
36
35
artifactId ' webextensions-declarations'
37
- version ' 1.0 '
36
+ version publish_version
38
37
39
38
from components. java
40
39
You can’t perform that action at this time.
0 commit comments