-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
109 lines (89 loc) · 2.78 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
98
99
100
101
102
103
104
105
106
107
buildscript {
repositories {
if( JavaVersion.current() == JavaVersion.VERSION_1_7 ) {
// Fallback for JDK 7 that can no longer connect to jcenter with https
maven { url "http://jcenter.bintray.com" }
} else {
jcenter()
}
}
dependencies {
// This sucks down a lot of stuff that 'normal' users wouldn't
// have and won't need anyway.
if( project.hasProperty('releaseUser') ) {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.+'
}
}
}
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'maven'
version='1.0.2'
group='org.joliver82'
ext.jmeVersion = "3.3+"
// Version meta-data
ext {
releaseDescription = "jme3-wireframe ${project.version}"
releaseVcsTag = "${project.version}"
}
// Project-wide meta-data
ext {
bintrayLabels = ['jMonkeyEngine', 'gamedev', 'render', 'shaders']
websiteUrl = 'https://github.com/joliver82/jme3-wireframe'
vcsUrl = 'https://github.com/joliver82/joliver82/jme3-wireframe.git'
githubRepo = 'joliver82/jme3-wireframe'
issueTrackerUrl = 'https://github.com/joliver82/jme3-wireframe/issues'
}
repositories {
mavenLocal()
if( JavaVersion.current() == JavaVersion.VERSION_1_7 ) {
// Fallback for JDK 7 that can no longer connect to jcenter with https
maven { url "http://jcenter.bintray.com" }
} else {
jcenter()
}
}
sourceCompatibility = 1.7
compileJava {
options.release = 7
options.encoding = 'UTF-8'
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
// Make sure the build file declares what it actually imports
configurations.compile {
transitive = false
}
dependencies {
// Pull in jme core for the math package for easy translation to/from JME
// classes.
implementation "org.jmonkeyengine:jme3-core:$jmeVersion"
implementation 'com.github.stephengold:Heart:6.2.0'
implementation 'org.slf4j:slf4j-api:1.7.13'
testImplementation 'junit:junit:4.12'
testImplementation 'org.codehaus.groovy:groovy-all:2.4.11'
}
test {
testLogging {
// I want to see the tests that are run and pass, etc.
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}
// Configuration to produce maven-repo style -sources and -javadoc jars
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
exclude '**/.backups'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
// Put this at the end or it won't pick up the project.version and stuff
if( project.hasProperty('releaseUser') ) {
apply plugin: 'com.jfrog.bintray'
apply from: 'release.gradle'
}