-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
109 lines (91 loc) · 2.67 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 'java'
id 'java-library'
id 'maven-publish'
id 'signing'
}
group 'codes.fepi'
version '1.1'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.12'
api group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
implementation group: 'eu.infomas', name: 'annotation-detector', version: '3.0.5'
api 'com.sparkjava:spark-core:2.9.0'
api "com.sparkjava:spark-template-mustache:2.7.1"
}
task sourceJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allJava
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives jar
archives sourceJar
archives javadocJar
}
publishing {
publications {
ldf(MavenPublication) {
from components.java
artifact sourceJar
artifact javadocJar
pom {
name = rootProject.name
description = 'A java library for bootstrapping a web application with java backend, and ldf+mustache frontend'
url = 'https://github.com/AUTplayed/ldfSpark'
organization {
name = 'codes.fepi'
url = 'https://fepi.codes'
}
issueManagement {
system = 'GitHub'
url = 'https://github.com/AUTplayed/ldfSpark/issues'
}
licenses {
license {
name = 'MIT'
url ='https://github.com/AUTplayed/ldfSpark/blob/master/LICENSE'
distribution = 'repo'
}
}
scm {
url = 'https://github.com/AUTplayed/ldfSpark'
connection = 'scm:git:git://github.com/AUTplayed/ldfSpark.git'
developerConnection = 'scm:git:ssh://[email protected]/AUTplayed/ldfSpark.git'
}
developers {
developer {
name = 'AUTplayed'
}
}
}
}
}
repositories {
/*maven {
url = "file://${buildDir}/../../repo"
}*/
maven {
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
credentials {
username sonatypeUsername
password sonatypePassword
}
}
}
}
signing {
sign publishing.publications.ldf
}
model {
tasks.generatePomFileForLdfPublication {
destination = file("$buildDir/generated-pom.xml")
}
}