forked from JFXtras/jfxtras-labs-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
83 lines (70 loc) · 1.65 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
task wrapper(type: Wrapper) {
gradleVersion = '1.8'
}
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
maven {
name 'JCenter - for Gradle Shadow'
url 'http://jcenter.bintray.com/'
}
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:0.8'
}
}
repositories {
mavenLocal()
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'shadow'
apply plugin: 'signing'
apply plugin: 'eclipse'
apply plugin: 'idea'
dependencies {
compile group: 'org.controlsfx', name: 'fxsampler', version: '1.0.3'
compile group: 'org.jfxtras', name: 'jfxtras-labs', version: '8.0-r1-SNAPSHOT'
}
// setup the generated jar
jar {
manifest {
// setup the main-class in the jar
attributes('Main-Class': 'fxsampler.FXSampler'
,"Implementation-Title": "JFXtras-samples"
, "Implementation-Version": 8.0
)
}
}
// merge everything into one jar
// https://github.com/johnrengelman/shadow
shadow {
}
// sign all generated jars
signing {
sign configurations.archives
// sign shadow.shadowJar
}
// determine the artifacts to be uploaded
artifacts {
// add the by shadow generated jar to the artifacts
archives shadow.shadowJar
}
// include the logic for uploading to maven
apply {
from 'gradle/mavenCentralDeploy.gradle'
}
// ========================================
// CONVENIENCE
task copyToLib(type: Copy) {
into "_lib"
from configurations.testCompile
}