This repository has been archived by the owner on Aug 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
84 lines (72 loc) · 2.28 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
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.4'
}
}
plugins {
id "org.sonarqube" version "3.1.1"
}
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
sonarqube {
properties {
property "sonar.projectKey", "openturing_turing-wem"
property "sonar.organization", "openturing"
property "sonar.host.url", "https://sonarcloud.io"
}
}
sourceCompatibility = 1.8
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
repositories {
maven { url 'https://jitpack.io' }
mavenCentral()
}
javadoc {
source = sourceSets.main.allJava
classpath = configurations.compile
destinationDir = file("docs")
}
task compileOne (type: JavaCompile) {
source = fileTree(dir: 'src', include: '**/*.java')
classpath = files('build/classes/main')
destinationDir = file('build/classes/main')
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
dependencies {
//implementation files(fileTree(dir: 'lib', includes: ['*.jar']))
implementation group: 'com.beust', name: 'jcommander', version: '1.47'
implementation group: 'log4j', name: 'log4j', version: '1.2.7'
implementation group: 'commons-httpclient', name: 'commons-httpclient', version: '3.1'
implementation 'com.github.alegauss:dummy-vgn:1a42a92d66'
implementation group: 'com.github.openturing', name: 'turing-java-sdk', version: '0.3.3'
}
jar {
manifest {
attributes 'Main-Class': 'com.viglet.turing.wem.TurWEMCommander'
}
}
shadowJar {
baseName = 'turing-wem'
classifier = null
version = 'all'
exclude 'vgn-*.jar'
exclude 'castor-*.jar'
exclude 'thirdparty-combined.jar'
dependencies {
exclude(dependency('log4j:log4j'))
exclude(dependency('org.apache.httpcomponents:httpcore'))
exclude(dependency('org.apache.httpcomponents:httpclient'))
exclude(dependency('commons-httpclient:commons-httpclient'))
exclude(dependency('com.github.alegauss:dummy-vgn'))
exclude(dependency('commons-codec:commons-codec'))
exclude(dependency('commons-logging:commons-logging'))
exclude(dependency('org.json:json'))
}
}
compileOne.options.compilerArgs = ["-sourcepath", "$projectDir/src/main/java"]