Skip to content

Commit 18bec32

Browse files
committed
initial
1 parent 8fb8620 commit 18bec32

File tree

7 files changed

+109
-34
lines changed

7 files changed

+109
-34
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.gradle/

kotlin/build.gradle

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10,43 +10,16 @@ buildscript {
1010
}
1111
dependencies {
1212
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
13-
classpath "org.junit.platform:junit-platform-gradle-plugin:1.0.1"
1413
}
1514
}
1615

17-
apply plugin: "idea"
18-
apply plugin: "java"
19-
apply plugin: "kotlin"
20-
apply plugin: "application"
21-
apply plugin: "org.junit.platform.gradle.plugin"
22-
23-
sourceSets {
24-
main.java.srcDirs += 'src/'
25-
}
26-
27-
junitPlatform {
28-
filters {
29-
engines {
30-
include 'spek'
31-
}
16+
allprojects {
17+
repositories {
18+
mavenCentral()
19+
jcenter()
3220
}
3321
}
3422

35-
mainClassName = "LogEvent"
36-
37-
repositories {
38-
mavenCentral()
39-
jcenter()
40-
maven { url "http://dl.bintray.com/jetbrains/spek" }
41-
}
42-
43-
dependencies {
44-
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
45-
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
46-
compile 'com.github.kittinunf.fuel:fuel:1.11.0'
47-
48-
testCompile 'org.jetbrains.kotlin:kotlin-test'
49-
testCompile 'org.jetbrains.spek:spek-api:1.1.5'
50-
testCompile 'org.junit.platform:junit-platform-runner:1.0.1'
51-
testRuntime 'org.jetbrains.spek:spek-junit-platform-engine:1.1.5'
23+
task clean(type: Delete) {
24+
delete rootProject.buildDir
5225
}

kotlin/src/LogEvent.kt renamed to kotlin/library/LogEvent.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright 2018 Sourcerer Inc. All Rights Reserved.
22
// Author: Alexander Surkov ([email protected])
33

4-
package sourcererio.vacuumanalytics
4+
package vacuumanalytics
55

66
import com.github.kittinunf.fuel.core.FuelError
77
import com.github.kittinunf.fuel.core.FuelManager

kotlin/library/build.gradle

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// Copyright 2018 Sourcerer Inc. All Rights Reserved.
2+
3+
buildscript {
4+
ext {
5+
kotlin_version = '1.1.51'
6+
}
7+
repositories {
8+
mavenCentral()
9+
jcenter()
10+
}
11+
dependencies {
12+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
13+
}
14+
}
15+
16+
apply plugin: "idea"
17+
apply plugin: "java"
18+
apply plugin: "kotlin"
19+
apply plugin: "application"
20+
/*
21+
sourceSets {
22+
main.java.srcDirs += ''
23+
}*/
24+
25+
mainClassName = "LogEvent"
26+
27+
repositories {
28+
mavenCentral()
29+
jcenter()
30+
}
31+
32+
dependencies {
33+
compile fileTree(dir: 'libs', include: ['*.jar'])
34+
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
35+
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
36+
compile 'com.github.kittinunf.fuel:fuel:1.11.0'
37+
}
38+
39+
jar {
40+
manifest {
41+
attributes "Main-Class": "vacuumanalytics.$mainClassName"
42+
}
43+
44+
baseName 'vacuum-analytics'
45+
}

kotlin/sample/build.gradle

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// Copyright 2018 Sourcerer Inc. All Rights Reserved.
2+
3+
buildscript {
4+
ext {
5+
kotlin_version = '1.1.51'
6+
}
7+
repositories {
8+
mavenCentral()
9+
jcenter()
10+
}
11+
dependencies {
12+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
13+
}
14+
}
15+
16+
apply plugin: "java"
17+
apply plugin: "kotlin"
18+
sourceSets {
19+
main.java.srcDirs += 'src/main/'
20+
}
21+
22+
repositories {
23+
mavenCentral()
24+
jcenter()
25+
}
26+
27+
dependencies {
28+
compile project(':library')
29+
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
30+
/*compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"*/
31+
}
32+
33+
compileKotlin {
34+
kotlinOptions.jvmTarget = "1.8"
35+
}
36+
37+
jar {
38+
manifest {
39+
attributes "Main-Class": "sample.MainKt"
40+
}
41+
42+
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
43+
44+
baseName 'sample'
45+
}

kotlin/sample/src/main/Main.kt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Copyright 2018 Sourcerer Inc. All Rights Reserved.
2+
// Author: Alexander Surkov ([email protected])
3+
4+
package sample
5+
6+
import vacuumanalytics.LogEvent
7+
8+
fun main(argv : Array<String>) {
9+
println("HEYHEYEYEHHE")
10+
}

kotlin/settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include ':library', ':sample'

0 commit comments

Comments
 (0)