Skip to content

Commit

Permalink
chore: 기본 세팅
Browse files Browse the repository at this point in the history
  • Loading branch information
urinaner committed Nov 4, 2024
1 parent e58b411 commit 2f04174
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 4 deletions.
27 changes: 23 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
plugins {
id 'java'
id 'org.springframework.boot' version '3.3.5'
id 'org.springframework.boot' version '3.3.5' apply(false)
id 'io.spring.dependency-management' version '1.1.6'
id 'maven-publish'
}

group = 'org.yj'
Expand All @@ -21,16 +22,34 @@ configurations {

repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}

dependencyManagement {
imports {
mavenBom org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES
}
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
implementation 'org.springframework.boot:spring-boot-starter-web:3.1.2'
compileOnly 'org.projectlombok:lombok:1.18.26'
annotationProcessor 'org.projectlombok:lombok:1.18.26'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

publishing {
publications {
maven(MavenPublication) {
groupId = 'com.example.coreservice'
artifactId = 'core-service'
version = '0.2.4'

from components.java
}
}
}
tasks.named('test') {
useJUnitPlatform()
}
11 changes: 11 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
jdk:
- openjdk21

before_install:
- sdk install java 21.0.1-zulu
- sdk use java 21.0.1-zulu
- sdk install maven
- mvn -v

install:
- ./gradlew build publishToMavenLocal
9 changes: 9 additions & 0 deletions src/main/java/org/yj/sejongauth/config/AutoConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package org.yj.sejongauth.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("org.yj.sejongauth")
public class AutoConfig {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
com.example.coreservice.config.AutoConfig

0 comments on commit 2f04174

Please sign in to comment.