From 2660440c1bfbf66873d91d4f9af2e8493036b27f Mon Sep 17 00:00:00 2001 From: yang Date: Tue, 4 Jun 2024 04:48:27 +0900 Subject: [PATCH] =?UTF-8?q?feat=20:=20build.gradle=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index bee5611..d9c2aee 100644 --- a/build.gradle +++ b/build.gradle @@ -1,11 +1,18 @@ plugins { id 'java' - id 'org.springframework.boot' version '3.2.5' + id 'org.springframework.boot' version '3.2.5' apply(false) id 'io.spring.dependency-management' version '1.1.4' + id 'maven-publish' } -group = 'com' -version = '0.0.1-SNAPSHOT' +group = 'com.querydslitemreader' +version = '1.0.0' + +configurations { + compileOnly { + extendsFrom annotationProcessor + } +} java { sourceCompatibility = '17' @@ -13,6 +20,13 @@ java { repositories { mavenCentral() + maven { url "https://jitpack.io" } +} + +dependencyManagement { + imports { + mavenBom org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES + } } dependencies { @@ -31,6 +45,21 @@ dependencies { annotationProcessor "jakarta.persistence:jakarta.persistence-api" } +publishing { + publications { + maven(MavenPublication) { + groupId = 'com.querydslitemreader.core' + artifactId = 'pagingitemreader' + from components.java + versionMapping { + usage('java-runtime') { + fromResolutionResult() + } + } + } + } +} + tasks.named('test') { useJUnitPlatform() }