-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
47 lines (40 loc) · 1.14 KB
/
build.gradle
File metadata and controls
47 lines (40 loc) · 1.14 KB
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
plugins {
id 'org.springframework.boot' version '2.7.0' apply false
id 'io.spring.dependency-management' version '1.0.11.RELEASE' apply false
id 'java'
id 'maven-publish'
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
group = 'like.ai'
version = '0.0.1-SNAPSHOT'
repositories {
mavenLocal()
mavenCentral()
}
tasks.register('sourcesJar', Jar) {
from sourceSets.main.allJava
archiveClassifier = 'sources'
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
}
}
repositories {
mavenLocal()
//maven {
// credentials {
// username project.findProperty("mavenUser") ?: ''
// password project.findProperty("mavenPass") ?: ''
// }
// def releasesRepoUrl = ""
// def snapshotsRepoUrl = ""
// url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
//}
}
}
}