-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
59 lines (50 loc) · 1.15 KB
/
build.gradle
File metadata and controls
59 lines (50 loc) · 1.15 KB
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
buildscript {
ext.kotlin_version = '1.2.51'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
group 'com.uadaf'
version '1.4'
apply plugin: 'kotlin'
apply plugin: 'maven-publish'
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task builddep(type: Jar, dependsOn: sourcesJar) {
classifier = ""
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId "uadamlib"
from components.java
artifact sourcesJar
}
}
repositories {
maven {
url "$buildDir/repo"
}
}
}
repositories {
mavenCentral()
maven { url "http://52.48.142.75/maven" }
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile 'com.google.code.gson:gson:2.8.5'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}