-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
99 lines (83 loc) · 2.94 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
/*
* This file was generated by the Gradle 'init' task.
*
* This is a general purpose Gradle build.
* Learn how to create Gradle builds at https://guides.gradle.org/creating-new-gradle-builds/
*/
plugins {
id 'java-library'
id 'edu.wpi.first.GradleRIO' version '2024.2.1'
id 'signing'
id 'maven-publish'
}
dependencies {
implementation wpi.java.deps.wpilib()
implementation wpi.java.vendor.java()
api 'org.apache.commons:commons-math3:3.6.1'
}
repositories {
mavenCentral()
}
group = 'io.github.team6083'
version = '2024.2.1-1-SNAPSHOT'
ext.isReleaseVersion = !version.endsWith('SNAPSHOT')
publishing {
repositories {
maven {
name = 'GitHubPackages'
url = uri('https://maven.pkg.github.com/team6083/overrobotlib')
credentials {
username = project.findProperty('gpr.user') ?: System.getenv('USERNAME')
password = project.findProperty('gpr.key') ?: System.getenv('TOKEN')
}
}
// maven {
// name = 'ossrh'
// def releaseRepo = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
// def snapshotRepo = 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
// url = isReleaseVersion ? releaseRepo : snapshotRepo
// credentials {
// username = project.findProperty('ossrh.username') ?: System.getenv('OSSRH_USERNAME')
// password = project.findProperty('ossrh.password') ?: System.getenv('OSSRH_PASSWORD')
// }
// }
}
publications {
mavenJava(MavenPublication) {
from(components.java)
pom {
name = 'OverRobotLib'
description = 'A robot library for FRC Team.'
url = 'https://github.com/Team6083/OverRobotLib'
licenses {
license {
name = 'MIT License'
url = 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
id = 'team6083'
name = 'Team6083'
email = 'frc2016@my.cmsh.cyc.edu.tw'
}
}
scm {
connection = 'scm:git:git://github.com/Team6083/OverRobotLib.git'
developerConnection = 'scm:git:https://github.com/Team6083/OverRobotLib'
url = 'https://github.com/Team6083/OverRobotLib'
}
}
}
}
}
//signing {
// required { isReleaseVersion }
//
// def signingKey = findProperty('signingKey') ?: System.getenv('signingKey')
// def signingPassword = findProperty('signingPassword') ?: System.getenv('signingPassword')
// useInMemoryPgpKeys(signingKey, signingPassword)
//
// sign configurations.archives
// sign publishing.publications
//}