-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
72 lines (59 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
64
65
66
67
68
69
70
71
72
plugins {
id "org.jetbrains.kotlin.jvm" version "1.5.31"
id "java-library"
id "maven-publish"
id 'jacoco'
id "com.diffplug.spotless" version "6.0.2"
}
group 'com.vortexa.refinery'
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of("11"))
}
withJavadocJar()
withSourcesJar()
}
repositories {
mavenCentral()
}
dependencies {
api 'org.apache.poi:poi:5.2.2'
api 'org.apache.poi:poi-ooxml:5.2.2'
// testing
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.2'
testImplementation 'org.assertj:assertj-core:3.19.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = 'Refinery'
url = 'https://github.com/VorTECHsa/refinery'
}
}
}
repositories {
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/VorTECHsa/refinery"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}
spotless {
kotlin {
ktlint("0.40.0")
}
}