-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
109 lines (90 loc) · 2.58 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
100
101
102
103
104
105
106
107
108
109
plugins {
id "org.jetbrains.kotlin.jvm" version "1.7.10"
id 'maven-publish'
id 'signing'
}
apply plugin: 'maven-publish'
apply plugin: 'jacoco'
group 'io.github.advantagefse'
version '0.9.7.1'
repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.code.gson:gson:2.9.1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.1'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
task sourcesJar(type: Jar, dependsOn: project.classes) {
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: project.javadoc) {
from javadoc.destinationDir
}
artifacts {
archives sourcesJar, javadocJar
}
publishing {
publications {
jsonLogicKotlin(MavenPublication) {
from components.java
pom {
name = 'io.github.advantagefse'
packaging = 'jar'
// optionally artifactId can be defined here
description = 'Kotlin implementation of JsonLogic http://jsonlogic.com rule engine.'
url = 'https://github.com/advantagefse/json-logic-kotlin'
scm {
connection = 'scm:git:git://https://github.com/advantagefse/json-logic-kotlin.git'
developerConnection = 'scm:git:ssh:https://github.com/advantagefse/json-logic-kotlin.git'
url = 'https://github.com/advantagefse/json-logic-kotlin'
}
artifact sourcesJar {
classifier = 'sources'
}
artifact javadocJar {
classifier = 'javadoc'
}
licenses {
license {
name = 'MIT'
}
}
developers {
developer {
id = 'afse'
name = 'Advantage FSE'
email = '[email protected]'
}
}
}
}
}
repositories {
maven {
url = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username = ossrhUsername
password = ossrhPassword
}
}
}
}
signing {
sign publishing.publications.jsonLogicKotlin
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled true
}
}
test {
useJUnitPlatform()
}