forked from redomar/JavaGame
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
53 lines (45 loc) · 1.14 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
plugins {
id 'com.adarshr.test-logger' version '2.0.0'
id "nebula.lint" version "16.0.2"
}
repositories{
mavenCentral()
}
apply plugin: 'java'
apply plugin: 'maven'
sourceSets{
main{
java.srcDirs = ['src']
resources.srcDirs = ['res']
}
test{
java.srcDirs = ['test']
}
}
dependencies{
implementation 'org.apache.commons:commons-text:+'
implementation 'org.apache.commons:commons-lang3:3.+'
testImplementation 'junit:junit:4.13'
implementation files('res/jars/JSplashScreen.jar')
}
jar {
from configurations.compileClasspath.collect { zipTree it }
manifest.attributes 'Main-Class' : 'com.redomar.game.Launcher'
}
task createPom {
pom {
project {
groupId 'com.redomar.game'
artifactId 'javagame'
version 'Alpha 1.8.5'
inceptionYear '2013'
licenses {
license {
name 'GNU AFFERO GENERAL PUBLIC LICENSE 3.0'
url 'https://www.gnu.org/licenses/agpl-3.0.txt'
distribution 'repo'
}
}
}
}.writeTo("pom.xml")
}