forked from lfkdsk/pysonar2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
70 lines (57 loc) · 1.61 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
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'maven'
group = 'org.yinwang'
version = 'v2.1.1'
buildscript {
ext.kotlin_version = '1.1.60'
ext.gson_version = '2.2.4'
ext.jackson_2_version = '2.2.3'
repositories {
mavenCentral()
}
dependencies {
//noinspection DifferentKotlinGradleVersion
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
repositories {
mavenCentral()
}
description = 'pysonar2.kt'
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
sourceSets {
main.kotlin.srcDirs += 'src'
test.kotlin.srcDirs += 'tests'
}
repositories {
maven { url "http://repo.maven.apache.org/maven2" }
}
jar {
manifest {
// attributes 'Main-Class': 'org.ice1000.mapgen.MainKt'
}
from {
configurations
.artifact
.collect { it.isDirectory() ? it : zipTree(it) }
}
}
configurations {
artifact
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
compile group: 'com.google.code.gson', name: 'gson', version: gson_version
compile group: 'com.google.guava', name: 'guava', version: '15.0'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: jackson_2_version
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: jackson_2_version
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: jackson_2_version
compile group: 'commons-io', name: 'commons-io', version: '2.4'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.0'
configurations.compile.extendsFrom(configurations.artifact)
}