-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.bak
54 lines (42 loc) · 1.09 KB
/
build.gradle.bak
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
buildscript {
ext {
projectGroup = "org.develnext.framework"
projectVersion = "1.0.0"
jphpVersion = "0.9.3-SNAPSHOT"
javaVersion = "1.8"
junitVersion = "4.12"
}
}
allprojects {
apply plugin: 'java'
apply plugin: 'maven'
group projectGroup
version projectVersion
ext.isSnapshot = !Boolean.getBoolean("release");
if (ext.isSnapshot) {
version += '-SNAPSHOT'
}
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
[compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8'
repositories {
mavenLocal()
mavenCentral()
}
configurations {
provided
}
sourceSets {
main {
compileClasspath += configurations.provided
resources.srcDirs = ['src-php', 'resources']
}
}
dependencies {
testCompile group: 'junit', name: 'junit', version: "${junitVersion}"
}
task sourcesJar(type: Jar, dependsOn: 'classes') {
classifier = 'sources'
from sourceSets.main.allSource
}
}