-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
100 lines (86 loc) · 2.54 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
99
100
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
group = 'io.github.mrsaraira'
version = '1.1.0'
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withJavadocJar()
withSourcesJar()
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compileOnly libs.lombok
annotationProcessor libs.lombok
testCompileOnly libs.lombok
testAnnotationProcessor libs.lombok
testImplementation platform(libs.junit.bom)
testImplementation libs.junit
}
testing {
suites {
test {
useJUnitJupiter()
}
}
}
signing {
required { gradle.taskGraph.hasTask("generateMetadataFileForMavenPublication") }
sign publishing.publications
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'io.github.mrsaraira'
artifactId = 'constant-containers'
from components.java
pom {
name = 'constant-containers'
description = 'Flexible generic data structure for storing immutable constant values and supports complex relations'
url = 'https://github.com/mrsaraira/constant-containers.git'
licenses {
license {
name = 'MIT License'
url = 'https://raw.githubusercontent.com/mrsaraira/constant-containers/main/LICENSE'
}
}
developers {
developer {
id = 'tsaraira'
name = 'Takhsin Saraira'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/mrsaraira/constant-containers.git'
developerConnection = 'scm:git:ssh://github.com/mrsaraira/constant-containers.git'
url = 'https://github.com/mrsaraira'
}
}
}
}
repositories {
maven {
name = 'release'
url = 'https://s01.oss.sonatype.org/content/repositories/releases'
credentials {
username mavenUsername
password mavenPassword
}
}
maven {
name = 'snapshot'
url = 'https://s01.oss.sonatype.org/content/repositories/snapshots'
credentials {
username mavenUsername
password mavenPassword
}
}
}
}