-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
63 lines (55 loc) · 1.41 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
plugins {
id 'com.github.johnrengelman.shadow' version '7.1.0'
id 'java'
id("maven-publish")
}
group 'kpa23.idle_codes'
version '1.5'
apply plugin: 'java'
sourceCompatibility = 1.9
targetCompatibility = 1.9
repositories {
mavenCentral()
}
dependencies {
implementation fileTree(dir: 'lib', include: ['*.jar'])
implementation 'commons-io:commons-io:2.5'
implementation 'net.java.dev.jna:jna:5.9.0'
implementation 'org.junit.jupiter:junit-jupiter:5.7.0'
}
test {
useJUnitPlatform()
}
jar {
manifest {
attributes(
'Main-Class': 'com.idlecodes.IdleCodes',
'Bundle-ClassPath': './lib/opencv-454.jar'
)
}
}
// Output to build/libs/shadow.jar
shadowJar {
archiveBaseName.set('idlecodes')
archiveClassifier.set('')
archiveVersion.set('')
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/kpa23/idle_codes")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR")
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
}
}
}
publications {
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
artifactId = 'idlecodes'
groupId 'kpa23'
}
}
}