-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
83 lines (71 loc) · 2.26 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
group 'be.bluexin'
version "$version_number.$build_number"
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
dependencies {
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0'
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'maven'
apply plugin: 'application'
apply plugin: 'org.junit.platform.gradle.plugin'
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-reflect:${kotlin_version}"
compile "org.jetbrains.kotlin:kotlin-runtime:${kotlin_version}"
compile "org.jetbrains.kotlinx:kotlinx-coroutines-core:${coroutines_version}"
compile "org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:${coroutines_version}"
compile "org.jetbrains.kotlinx:kotlinx-coroutines-nio:${coroutines_version}"
testCompile("org.junit.jupiter:junit-jupiter-api:5.0.0")
testCompile("org.junit.platform:junit-platform-launcher:1.0.0")
testRuntime("org.junit.jupiter:junit-jupiter-engine:5.0.0")
}
task sourceJar(type: Jar, overwrite: true) {
from "src/main/java"
from "src/test/java"
from "src/main/kotlin"
from "src/tes/kotlin"
classifier = 'sources'
}
artifacts {
archives sourceJar
}
mainClassName = "be.bluexin.generation.Main"
applicationDefaultJvmArgs = ["-Xverify:none"]
uploadArchives {
if (System.getenv('REPO_PWD') != null) {
repositories.mavenDeployer {
repository(url: "http://maven.bluexin.be/repository/" (((String) project.version).contains("SNAPSHOT") ? "snapshots" : "releases") "/") {
authentication(userName: "travis", password: System.getenv('REPO_PWD'))
}
}
} /*else {
repositories.mavenDeployer {
repository(url: "file://" (System.getenv("local_maven") != null ? System.getenv("local_maven") : project.buildDir.toString() "/libs/mvn"))
}
}*/
}
kotlin {
experimental {
coroutines "enable"
}
}
compileKotlin {
kotlinOptions {
javaParameters = true
jvmTarget = 1.8
}
}
build.dependsOn(installDist)