-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
48 lines (41 loc) · 1.05 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
plugins {
id 'java-library'
id 'maven-publish'
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter:2.5.4'
implementation 'org.springframework.boot:spring-boot-starter-webflux:2.5.4'
testImplementation 'org.springframework.boot:spring-boot-starter-test:2.5.4'
}
group = 'org.brainframe'
version = '1.0.0-SNAPSHOT'
description = 'Restful APIs for brainframe'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
task sourcesJar(type: Jar) {
archiveClassifier.set('sources')
from(sourceSets.main.allJava)
}
task testsJar(type: Jar) {
archiveClassifier.set('tests')
from(sourceSets.test.output)
}
// just an alias
task install(dependsOn: ['build', 'publishToMavenLocal'])
publishing {
publications {
maven(MavenPublication) {
from(components.java)
artifact(sourcesJar)
artifact(testsJar)
}
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
// options.compilerArgs.add('-Xlint:all')
}