-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
102 lines (90 loc) · 2.66 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
plugins {
id 'org.springframework.boot' version "2.7.6"
id 'io.spring.dependency-management' version "1.0.11.RELEASE"
id 'java'
}
apply plugin: "maven-publish"
apply plugin: 'signing'
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
archiveClassifier = 'sources'
}
task javadocJar(type: Jar) {
from javadoc
classifier = 'javadoc'
}
artifacts {
archives javadocJar, sourcesJar
}
group 'com.fineely'
version '1.0.6'
def artifactId = "fineely-config"
archivesBaseName = artifactId
sourceCompatibility = '11'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.springframework.boot:spring-boot-starter-test'
compileOnly("org.springframework.boot:spring-boot-starter-data-jpa")
compileOnly('com.baomidou:mybatis-plus-boot-starter:3.5.2')
compileOnly("org.springframework.boot:spring-boot-starter-web")
implementation('com.alibaba:fastjson:2.0.32')
implementation('org.reflections:reflections:0.10.2')
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId project.group
version project.version
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = 'fineely-config'
description = 'A Lightweight System Configuration Framework'
url = 'https://github.com/Big-billed-shark/fineely-config'
licenses {
license {
name = 'MIT License'
url = 'https://mit-license.org/'
}
}
developers {
developer {
name = 'Kepler Lei'
email = 'kepler_16b@163.com'
}
}
scm {
url = 'https://github.com/Big-billed-shark/fineely-config'
connection = 'scm:git:https://github.com/Big-billed-shark/fineely-config.git'
developerConnection = 'scm:git:https://github.com/Big-billed-shark/fineely-config.git'
}
}
}
}
repositories {
maven {
name 'fineely-config'
url "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = ossrhUsername
password = ossrhPassword
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
javadoc {
options.encoding = "UTF-8"
failOnError = false
}
jar {
baseName = "$archivesBaseName"
version = "$project.version"
enabled = true
classifier = ''
}