diff --git a/README.md b/README.md index 2ecd8a7..47665d8 100644 --- a/README.md +++ b/README.md @@ -44,11 +44,17 @@ repositories { } dependencies { - implementation 'com.github.Miche-Let:common:main-SNAPSHOT' + implementation 'com.github.Miche-Let:common:' } ``` > `` 는 깃 태그(`v0.0.1` 등), 브랜치(`main-SNAPSHOT`), 또는 커밋 해시. +> +> ex ) +> +> dependencies { +implementation 'com.github.Miche-Let:common:dev-SNAPSHOT' +} ### 2. `AuditorAware` Bean 등록 (필수) diff --git a/build.gradle b/build.gradle index c68c9bd..c096b1b 100644 --- a/build.gradle +++ b/build.gradle @@ -2,6 +2,7 @@ plugins { id 'java-library' id 'org.springframework.boot' version '3.5.14' apply false id 'io.spring.dependency-management' version '1.1.6' + id 'maven-publish' } group = 'com.michelet' @@ -31,13 +32,10 @@ dependencyManagement { } dependencies { - // 공통 모듈이 제공하는 기능들에 필요한 최소 의존성 - // api 로 노출해서 서비스가 별도 선언 없이 바로 쓸 수 있게 함 - api 'org.springframework.boot:spring-boot-starter-web' - api 'org.springframework.boot:spring-boot-starter-validation' - api 'org.springframework.boot:spring-boot-starter-data-jpa' - // Lombok + implementation 'org.springframework.boot:spring-boot-starter-web' + implementation 'org.springframework.boot:spring-boot-starter-validation' + implementation 'org.springframework.boot:spring-boot-starter-data-jpa' compileOnly 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok' @@ -58,3 +56,16 @@ javadoc { options.addStringOption('Xdoclint:none', '-quiet') } +publishing { + publications { + common(MavenPublication) { + from components.java + } + } +} + +tasks.withType(GenerateModuleMetadata).configureEach { + suppressedValidationErrors.add('dependencies-without-versions') +} + +