forked from danhper/bigcode-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
98 lines (83 loc) · 2.39 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
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins {
id 'java'
id 'application'
id 'idea'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '2.0.1'
id 'com.jfrog.bintray' version '1.7.3'
}
repositories {
jcenter()
}
sourceSets {
libsDirName = 'lib'
}
dependencies {
compile 'com.github.javaparser:javaparser-core:3.3.3'
compile 'com.fasterxml.jackson.core:jackson-databind:2.9.1'
compile 'org.slf4j:slf4j-api:1.7.25'
compile 'org.slf4j:slf4j-simple:1.7.25'
compile 'args4j:args4j:2.33'
testCompile 'junit:junit:4.12'
testCompile 'commons-io:commons-io:2.5'
}
javadoc {
source = sourceSets.main.allJava
exclude 'com/tuvistavie/bigcode/astgen/Cli.java'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
classifier = 'source'
}
bintray {
if (project.hasProperty('bintray.username')) {
user = property('bintray.username')
}
if (project.hasProperty('bintray.apikey')) {
key = property('bintray.apikey')
}
publications = ['MyPublication']
pkg {
repo = 'maven'
name = 'bigcode-astgen'
licenses = ['MIT']
vcsUrl = 'https://github.com/tuvistavie/bigcode-tools.git'
publish = true
version {
name = project.VERSION
desc = 'bigcode-astgen first release'
released = new Date()
vcsTag = project.VERSION
}
}
}
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
groupId 'com.tuvistavie.bigcode'
artifactId 'astgen'
version project.VERSION
}
}
}
test {
testLogging {
events TestLogEvent.FAILED, TestLogEvent.PASSED, TestLogEvent.SKIPPED,
TestLogEvent.STANDARD_ERROR, TestLogEvent.STANDARD_OUT
exceptionFormat TestExceptionFormat.FULL
showCauses true
showExceptions true
showStackTraces true
}
systemProperty 'org.slf4j.simpleLogger.defaultLogLevel', System.getProperty('org.slf4j.simpleLogger.defaultLogLevel', 'WARN')
}
mainClassName = 'com.tuvistavie.bigcode.astgen.Cli'