Skip to content

Commit

Permalink
feat: 초기 세팅
Browse files Browse the repository at this point in the history
  • Loading branch information
urinaner committed Nov 4, 2024
2 parents 7a586e4 + 4c17bf3 commit e243ebf
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 5 deletions.
30 changes: 25 additions & 5 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,35 @@ 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
7 changes: 7 additions & 0 deletions src/main/java/org/yj/sejongauth/Test.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package org.yj.sejongauth;

public class Test {
public static void Console(){
System.out.println("test");
}
}
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 e243ebf

Please sign in to comment.