-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
84 lines (74 loc) · 2.21 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
plugins {
id 'java'
id 'maven-publish'
id 'org.jetbrains.kotlin.jvm' version '1.6.0'
id 'org.sonarqube' version '3.3'
id 'jacoco'
}
version properties["version"]
repositories {
mavenCentral()
maven {
url(project.properties["reposilite.release"])
allowInsecureProtocol(true)
}
maven {
url(project.properties["reposilite.spigot"])
allowInsecureProtocol(true)
}
}
dependencies {
compileOnly "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compileOnly group: 'org.jetbrains.kotlin', name: 'kotlin-reflect'
testImplementation('junit:junit:4.13.2')
compileOnly("skywolf46:extrautility-core:2.4.0")
testImplementation("skywolf46:extrautility-core:2.4.0")
testImplementation group: 'org.jetbrains.kotlin', name: 'kotlin-reflect'
testImplementation('org.junit.jupiter:junit-jupiter-engine:5.8.2')
testImplementation('org.junit.jupiter:junit-jupiter-params:5.8.2')
testImplementation('org.junit.platform:junit-platform-runner:1.8.2')
}
test {
useJUnitPlatform()
}
publishing {
repositories {
maven {
name = "Reposilite"
url(rootProject.properties["snapshot"] as Boolean ? rootProject.properties['reposilite.snapshot'] as String : rootProject.properties['reposilite.release'] as String)
allowInsecureProtocol(true)
credentials {
username rootProject.properties['reposilite.user'] as String
password rootProject.properties['reposilite.token'] as String
}
}
}
publications {
create("jar", MavenPublication) {
groupId 'skywolf46'
artifactId "commandannotation-core"
version rootProject.properties['version'] as String
from components.java
}
}
}
sonarqube {
properties {
property "sonar.projectKey", "CommandAnnotation_CommandAnnotationCore"
property "sonar.organization", "commandannotation"
property "sonar.host.url", "https://sonarcloud.io"
}
}
jacoco {
toolVersion = '0.8.7'
}
test {
finalizedBy jacocoTestReport
}
jacocoTestReport {
reports {
html.enabled true
xml.enabled true
csv.enabled false
}
}