-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
45 lines (40 loc) · 958 Bytes
/
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
plugins {
id 'java'
id 'jacoco'
id 'maven-publish'
}
repositories {
mavenCentral()
}
jar {
manifest {
attributes 'Main-Class': 'com.github.samyadaleh.cltoolbox.cli.Main'
}
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
compileTestJava.options.encoding = "UTF-8"
group = "com.github.samyadaleh.cltoolbox"
version = "0.0.1-SNAPSHOT"
dependencies {
implementation 'org.apache.logging.log4j:log4j-core:2.12.4'
testImplementation 'junit:junit:4.13.1'
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/samyadaleh/CL-Toolbox")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}