Skip to content

Commit 1e90ea0

Browse files
김지훈김지훈
김지훈
authored and
김지훈
committed
chore: jitpack 배포를 위한 설정 수정
1 parent d934bc3 commit 1e90ea0

File tree

2 files changed

+22
-13
lines changed

2 files changed

+22
-13
lines changed

build.gradle

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ plugins {
66
id 'maven-publish'
77
}
88

9-
group = 'com.pawn.autodistributedlock'
10-
version = '0.0.10-SNAPSHOT'
9+
group = 'com.github.devrunner21'
10+
version = '1.0.0-SNAPSHOT'
1111

12-
//group = 'com.pawn'
13-
//version = '0.0.10-SNAPSHOT'
14-
//sourceCompatibility = '11'
15-
//targetCompatibility = '11'
12+
sourceCompatibility = '11'
13+
targetCompatibility = '11'
1614

1715
configurations {
1816
compileOnly {
@@ -52,11 +50,22 @@ publishing {
5250
}
5351
}
5452

55-
tasks.named('test') {
56-
useJUnitPlatform()
53+
task sourcesJar(type: Jar, dependsOn: classes) {
54+
classifier = 'sources'
55+
from sourceSets.main.allSource
56+
}
57+
58+
task javadocJar(type: Jar, dependsOn: javadoc) {
59+
classifier = 'javadoc'
60+
from javadoc.destinationDir
5761
}
5862

59-
wrapper {
60-
gradleVersion = "7.3.3"
61-
distributionType = Wrapper.DistributionType.ALL
63+
artifacts {
64+
archives bootJar
65+
archives sourcesJar
66+
archives javadocJar
67+
}
68+
69+
tasks.named('test') {
70+
useJUnitPlatform()
6271
}

src/main/java/com/pawn/autodistributedlock/DistributedLockApplication.java renamed to src/main/java/com/pawn/autodistributedlock/AutoDistributedLockApplication.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
@EnableCaching
88
@SpringBootApplication
9-
public class DistributedLockApplication {
9+
public class AutoDistributedLockApplication {
1010

1111
public static void main(String[] args) {
12-
SpringApplication.run(DistributedLockApplication.class, args);
12+
SpringApplication.run(AutoDistributedLockApplication.class, args);
1313
}
1414

1515
}

0 commit comments

Comments
 (0)