-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
95 lines (81 loc) · 2.44 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
plugins {
id 'java'
id 'maven-publish'
id 'signing'
}
group = 'io.github.proto4j'
version = '0.1-SNAPSHOT'
archivesBaseName = "proto4j-iconmgr"
version = "0.1"
repositories {
mavenCentral()
}
dependencies {
implementation 'org.apache.xmlgraphics:batik-all:1.16'
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
test {
useJUnitPlatform()
}
java {
withSourcesJar()
withJavadocJar()
}
// Remove this configuration to be able to build the project
publishing {
repositories {
maven {
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = ossrhUsername
password = ossrhPassword
}
}
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/proto4j/proto4j-iconmgr")
credentials {
username = project.findProperty("p4j.user")
password = project.findProperty("p4j.iconmgr.key")
}
}
}
publications {
mavenJava(MavenPublication) {
from components.java
artifactId = 'proto4j-iconmgr'
groupId = 'io.github.proto4j'
version = '0.1'
pom {
name = 'Proto4j-IconManager'
packaging = 'jar'
artifactId = 'proto4j-iconmgr'
groupId = 'io.github.proto4j'
description = 'Java Library to manage and load Icons effectively.'
url = 'https://github.com/Proto4j/proto4j-iconmgr'
scm {
connection = 'scm:git:https://github.com/Proto4j/proto4j-iconmgr'
developerConnection = 'scm:git:https://github.com/Proto4j/proto4j-iconmgr'
url = 'https://github.com/Proto4j/proto4j-iconmgr'
}
licenses {
license {
name = 'MIT'
url = 'https://spdx.org/licenses/MIT.html'
}
}
developers {
developer {
id = 'Proto4j-Group'
name = 'Proto4j'
email = '[email protected]'
}
}
}
}
}
}
signing {
sign publishing.publications.mavenJava
}