File tree Expand file tree Collapse file tree 6 files changed +38
-16
lines changed Expand file tree Collapse file tree 6 files changed +38
-16
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,16 @@ buildscript {
13
13
}
14
14
}
15
15
16
+ apply plugin : " idea"
17
+ apply plugin : " java"
18
+ apply plugin : " kotlin"
19
+ apply plugin : " application"
20
+
16
21
allprojects {
17
22
repositories {
18
23
mavenCentral()
19
24
jcenter()
20
25
}
21
26
}
22
27
23
- task clean (type : Delete ) {
24
- delete rootProject. buildDir
25
- }
28
+ mainClassName = " vacuumanalytics.LogEventKt"
Original file line number Diff line number Diff line change @@ -17,12 +17,8 @@ apply plugin: "idea"
17
17
apply plugin : " java"
18
18
apply plugin : " kotlin"
19
19
apply plugin : " application"
20
- /*
21
- sourceSets {
22
- main.java.srcDirs += ''
23
- }*/
24
20
25
- mainClassName = " LogEvent "
21
+ mainClassName = " vacuumanalytics.LogEventKt "
26
22
27
23
repositories {
28
24
mavenCentral()
@@ -36,10 +32,26 @@ dependencies {
36
32
compile ' com.github.kittinunf.fuel:fuel:1.11.0'
37
33
}
38
34
35
+ repositories {
36
+ mavenCentral()
37
+ jcenter()
38
+ flatDir {
39
+ dirs ' libs'
40
+ }
41
+ }
42
+
43
+ // Include dependent libraries in archive.
39
44
jar {
40
45
manifest {
41
- attributes " Main-Class" : " vacuumanalytics.$mainClassName "
46
+ attributes " Main-Class" : " $mainClassName "
47
+ }
48
+ from {
49
+ configurations. compile. collect { it. isDirectory() ? it : zipTree(it) }
50
+ } {
51
+ exclude " META-INF/*.SF"
52
+ exclude " META-INF/*.DSA"
53
+ exclude " META-INF/*.RSA"
42
54
}
43
55
44
- baseName ' vacuum-analytics '
56
+ baseName ' library '
45
57
}
File renamed without changes.
Original file line number Diff line number Diff line change @@ -13,8 +13,11 @@ buildscript {
13
13
}
14
14
}
15
15
16
+ apply plugin : " idea"
16
17
apply plugin : " java"
17
18
apply plugin : " kotlin"
19
+ apply plugin : " application"
20
+
18
21
sourceSets {
19
22
main. java. srcDirs + = ' src/main/'
20
23
}
@@ -30,16 +33,20 @@ dependencies {
30
33
/* compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"*/
31
34
}
32
35
33
- compileKotlin {
34
- kotlinOptions. jvmTarget = " 1.8"
35
- }
36
+ mainClassName = " sample.MainKt"
36
37
37
38
jar {
38
39
manifest {
39
- attributes " Main-Class" : " sample.MainKt "
40
+ attributes " Main-Class" : " $m ainClassName "
40
41
}
41
42
42
- from { configurations. compile. collect { it. isDirectory() ? it : zipTree(it) } }
43
+ from {
44
+ configurations. compile. collect { it. isDirectory() ? it : zipTree(it) }
45
+ } {
46
+ exclude " META-INF/*.SF"
47
+ exclude " META-INF/*.DSA"
48
+ exclude " META-INF/*.RSA"
49
+ }
43
50
44
51
baseName ' sample'
45
52
}
File renamed without changes.
Original file line number Diff line number Diff line change 1
- include ' : library' , ' : sample'
1
+ include ' library' , ' sample'
You can’t perform that action at this time.
0 commit comments