-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
98 lines (82 loc) · 2.52 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
plugins {
id 'org.gosu-lang.gosu' version '0.3.1' apply false
}
wrapper {
gradleVersion '3.5'
}
subprojects {
apply plugin: 'org.gosu-lang.gosu'
apply plugin: 'maven'
repositories {
mavenLocal()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' } // for Gosu snapshots
mavenCentral()
}
compileGosu {
dependsOn tasks.processResources
classpath = files(tasks.getByName('compileJava').outputs.files, sourceSets.main.output.resourcesDir, classpath)
// gosuOptions.forkOptions.with {
// jvmArgs += ['-Xdebug', '-Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=y'] //debug on linux/OS X
// }
}
compileTestGosu {
dependsOn tasks.processTestResources
classpath = files(tasks.getByName('compileTestJava').outputs.files, sourceSets.test.output.resourcesDir, classpath)
}
jar {
excludes ['serverconfig.properties']
manifest {
attributes('Contains-Sources': 'gs, gsx, gst')
}
}
task sourceJar(type: Jar) {
classifier = 'sources'
description 'generate sources'
from sourceSets.main.gosu
}
task gosudocJar(type: Jar) {
classifier = 'gosudoc'
description 'generate gosudoc'
from gosudoc
}
artifacts {
archives sourceJar, gosudocJar
}
/* from 'maven' plugin */
uploadArchives {
repositories {
mavenDeployer {
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: System.env.ossrhUsername, password: System.env.ossrhPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: System.env.ossrhUsername, password: System.env.ossrhPassword)
}
pom.project {
name project.name
packaging 'jar'
description project.description
url 'http://gosu-lang.github.io/'
scm {
connection 'scm:git:[email protected]:gosu-lang/gosu-lang.git'
developerConnection 'scm:git:[email protected]:gosu-lang/gosu-lang.git'
url '[email protected]:gosu-lang/gosu-lang.git'
}
licenses {
license {
name 'The Apache License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
name 'The Gosu Team'
email '[email protected]'
organization 'Guidewire'
}
}
}
}
}
}
}