-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
76 lines (66 loc) · 1.7 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
plugins {
id 'java-library'
id 'signing'
id 'maven-publish'
id 'java'
}
group 'ch.games'
version '0.0.13'
repositories {
mavenCentral()
}
tasks.named('jar') {
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': project.version
)
}
}
java {
withSourcesJar()
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/maebli/jass"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
mavenJava(MavenPublication) {
artifactId = 'jass-library'
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'Jass Library'
description = 'A library to use to play the game Jass.'
url = 'https://github.com/maebli/jass'
licenses {
license {
name = 'GNU Lesser General Public License v2.1'
url = 'https://github.com/maebli/jass/blob/master/LICENSE'
}
}
developers {
developer {
name = 'maebli'
}
}
}
}
}
}
dependencies {
testImplementation 'junit:junit:4.13'
}