-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
62 lines (55 loc) · 1.51 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
//------------------------------------------------------------------------------
// Global
// content of this section could be placed in an other script
//------------------------------------------------------------------------------
allprojects {
//apply plugin: 'nebula.lint'
//gradleLint.rules = ['all-dependency']
project.version = "git describe --always --dirty".execute().text.trim()
println("version : '${project.version}'")
group = "org.xbuf.jme3_xbuf"
def description = 'xbuf lib and tools for jMonkeyEngine (jme3)'
}
subprojects {
apply plugin: 'java' // assets are managed like java resource + code
apply plugin: 'maven'
apply plugin: 'eclipse'
repositories {
mavenLocal()
jcenter()
maven { url "http://dl.bintray.com/davidb/jme3stuff" }
maven { url "https://jitpack.io" }
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
task writeNewPom << {
pom {
project {
inceptionYear '2015'
description project.description
licenses {
license {
name "Public domain (CC0-1.0)"
url "http://creativecommons.org/publicdomain/zero/1.0/"
distribution "repo"
}
}
developers {
developer {
id "davidB"
name "David Bernard"
}
developer {
id "riccardobl"
name "Riccardo Balbo"
}
}
}
}.writeTo("$buildDir/newpom.xml")
}
}