-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
56 lines (47 loc) · 1.08 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
buildscript {
ext {
shadowVersion = '2.0.1'
hexameterVersion = '3.0.0'
}
repositories {
jcenter()
mavenCentral()
mavenLocal()
}
dependencies {
classpath("com.github.jengelman.gradle.plugins:shadow:$shadowVersion")
}
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'com.github.johnrengelman.shadow'
jar {
baseName = 'hexameter.example.swt'
manifest {
attributes 'Implementation-Title': 'Hexameter SWT Example',
'Implementation-Version': version,
'Main-Class': 'org.codetome.hexameter.swtexample.Main'
}
}
sourceCompatibility = 1.7
configurations {
shadow
compile.extendsFrom provided
provided.extendsFrom shadow
}
shadowJar {
baseName = 'hexameter.example.swt'
classifier = null
version = null
}
artifacts {
archives shadowJar
}
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
compile("org.codetome.hexameter:hexameter.core:2017.1.0")
compile("org.eclipse.swt:org.eclipse.swt.win32.win32.x86_64:4.3")
}