-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
103 lines (90 loc) · 2.56 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
101
102
103
plugins {
id 'java'
id 'maven-publish'
id 'signing'
id 'org.jreleaser' version '1.13.1'
}
group = 'org.altcha'
archivesBaseName = 'altcha'
version = '1.1.2'
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withJavadocJar()
withSourcesJar()
}
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
implementation 'org.json:json:20240303'
}
test {
useJUnitPlatform()
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'org.altcha'
artifactId = 'altcha'
from components.java
pom {
name = 'org.altcha.altcha'
description = 'A library for creating and verifying ALTCHA challenges.'
url = 'https://github.com/altcha-org/altcha-lib-java'
inceptionYear = '2024'
licenses {
license {
name = 'MIT License'
url = 'http://www.opensource.org/licenses/mit-license.php'
}
}
developers {
developer {
id = 'daniel'
name = 'Daniel Regeci'
}
}
scm {
connection = 'scm:git:https://github.com/altcha-org/altcha-lib-java.git'
developerConnection = 'scm:git:ssh://github.com/altcha-org/altcha-lib-java.git'
url = 'http://github.com/altcha-org/altcha-lib-java'
}
}
}
}
repositories {
maven {
url = layout.buildDirectory.dir('staging-deploy')
}
}
}
jreleaser {
release {
github {
token = System.getenv('GITHUB_TOKEN')
}
}
signing {
active = 'ALWAYS'
armored = true
mode = 'FILE'
publicKey = System.getenv('SIGNING_PUBLIC_KEY')
secretKey = System.getenv('SIGNING_SECRET_KEY')
passphrase = System.getenv('SIGNING_PASSPHRASE')
}
deploy {
maven {
mavenCentral {
sonatype {
active = 'ALWAYS'
url = 'https://central.sonatype.com/api/v1/publisher'
username = System.getenv('OSSRH_USERNAME')
password = System.getenv('OSSRH_PASSWORD')
stagingRepository('build/staging-deploy')
}
}
}
}
}