-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
106 lines (89 loc) · 2.49 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.3.10'
id 'com.github.johnrengelman.shadow' version '4.0.3' apply false
}
ext {
artifact_group = 'info.spiralframework'
project_version = "${System.getenv('GIT_COMMIT') ?: System.getProperty("GIT_COMMIT") ?: "unknown"}".substring(0, 7) //'1.0.0-alpha'
jackson_version = '2.9.4'
sfl4j_version = '1.7.25'
imperator_version = '8ef2bb7'
logback_version = '1.2.3'
fuel_version = '2.0.1'
}
allprojects {
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'maven-publish'
group = artifact_group
version = project_version
sourceCompatibility = 1.8
configurations {
compileInclude
compile.extendsFrom(compileInclude)
}
jar {
baseName = "spiral"
appendix = "$project.name"
version = ""
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
baseName = jar.baseName
appendix = jar.appendix
version = jar.version
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
baseName = jar.baseName
appendix = jar.appendix
version = jar.version
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
publishing {
repositories {
maven {
// change to point to your repo, e.g. http://my.org/repo
url = "$buildDir/repo"
}
}
publications {
maven(MavenPublication) {
artifactId = "spiral-$project.name"
from components.java
artifact sourcesJar
artifact javadocJar
}
}
}
repositories {
mavenCentral()
jcenter()
maven {
url "https://maven.abimon.org"
}
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
kotlin.sourceSets.all {
languageSettings.useExperimentalAnnotation('kotlin.ExperimentalUnsignedTypes')
}
}
subprojects {
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.10"
compile "org.jetbrains.kotlin:kotlin-reflect:1.3.10"
compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.1.1'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
}