-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
96 lines (86 loc) · 2.64 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
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
repositories {
mavenCentral()
}
dependencies {
api 'org.jetbrains:annotations:17.0.0'
api 'com.googlecode.json-simple:json-simple:1.1.1'
testImplementation 'junit:junit:4.13.2'
testImplementation('org.junit.platform:junit-platform-runner:1.4.2')
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.0'
}
test {
useJUnitPlatform()
}
sourceCompatibility = '1.9'
targetCompatibility = '1.9'
version = '2025.0.1'
group = 'org.a05annex'
java {
withJavadocJar()
withSourcesJar()
}
test {
testLogging {
events 'started', 'passed'
}
}
artifacts {
archives jar, javadocJar, sourcesJar
}
signing {
if (project.hasProperty("signing.keyId") &&
project.hasProperty("signing.password") &&
project.hasProperty("signing.secretKeyRingFile") )
{
sign configurations.archives
}
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'a05annexUtil'
from components.java
pom {
name = 'A05annex Utilities'
description = 'A05annex robotics utilities not dependent on the First FRC code base.'
url = 'https://github.com/A05annex/a05annexUtil'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'A05annex'
name = 'A05annex'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/A05annex/a05annexUtil.git'
developerConnection = 'scm:git:ssh://github.com/A05annex/a05annexUtil.git'
url = 'https://github.com/A05annex/a05annexUtil'
}
}
}
}
repositories {
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/A05annex/a05annexUtil"
credentials {
username = project.hasProperty("githubActor") ?
project.property("githubActor") : System.getenv("GITHUB_ACTOR")
password = project.hasProperty("githubToken") ?
project.property("githubToken") : System.getenv("GITHUB_TOKEN")
}
}
}
}