Skip to content

Commit beaacb9

Browse files
authored
Update build.grade
Added task createPom
1 parent 7f31ac8 commit beaacb9

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

build.gradle

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ repositories{
33
}
44

55
apply plugin: 'java'
6+
apply plugin: 'maven'
67

78
sourceSets{
89
main{
@@ -27,3 +28,23 @@ jar {
2728
from configurations.compile.collect { zipTree it }
2829
manifest.attributes 'Main-Class' : 'com.redomar.game.Launcher'
2930
}
31+
32+
task createPom {
33+
pom {
34+
project {
35+
groupId 'com.redomar.game'
36+
artifactId 'javagame'
37+
version 'Alpha 1.8.4'
38+
39+
inceptionYear '2013'
40+
licenses {
41+
license {
42+
name 'GNU AFFERO GENERAL PUBLIC LICENSE 3.0'
43+
url 'https://www.gnu.org/licenses/agpl-3.0.txt'
44+
distribution 'repo'
45+
}
46+
}
47+
48+
}
49+
}.writeTo("pom.xml")
50+
}

0 commit comments

Comments
 (0)