Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#1] Gradle 초기설정 #2

Merged
merged 4 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
### Gradle ###
.gradle/
/build/

### 로그 ###
*.log

### MacOS ###
.DS_Store

### IntelliJ IDEA ###
*.iml
out/
.idea/

### YML ###
*.yml
Binary file not shown.
Empty file.
Binary file removed .gradle/7.2/executionHistory/executionHistory.lock
Binary file not shown.
Binary file removed .gradle/7.2/fileChanges/last-build.bin
Binary file not shown.
Binary file removed .gradle/7.2/fileHashes/fileHashes.lock
Binary file not shown.
Empty file removed .gradle/7.2/gc.properties
Empty file.
Binary file removed .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
2 changes: 0 additions & 2 deletions .gradle/buildOutputCleanup/cache.properties

This file was deleted.

Binary file removed .gradle/checksums/checksums.lock
Binary file not shown.
Empty file removed .gradle/vcs-1/gc.properties
Empty file.
8 changes: 0 additions & 8 deletions .idea/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/compiler.xml

This file was deleted.

17 changes: 0 additions & 17 deletions .idea/gradle.xml

This file was deleted.

20 changes: 0 additions & 20 deletions .idea/jarRepositories.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/misc.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

13 changes: 13 additions & 0 deletions api/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
plugins {
id 'org.springframework.boot' version '3.3.4'
id 'io.spring.dependency-management' version '1.1.6'
}

dependencies {
implementation project(':common')
implementation project(':service')

implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
Binary file not shown.
Binary file not shown.
11 changes: 11 additions & 0 deletions api/src/main/java/com/whalewatch/WhaleWatchApplication.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.whalewatch;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class WhaleWatchApplication {
public static void main(String[] args) {
SpringApplication.run(WhaleWatchApplication.class, args);
}
}
31 changes: 20 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
plugins {
id 'java'
id 'java' // Java 플러그인 추가 (Java 프로젝트로 인식)
}

group 'com.example'
version '1.0-SNAPSHOT'
group 'com.whalewatch'
version '0.0.1-SNAPSHOT'

repositories {
mavenCentral()
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
}

dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
subprojects {
// 모든 서브프로젝트에 공통 적용할 설정
apply plugin: 'java'

repositories {
mavenCentral() // Maven Central에서 의존성 다운로드
}


test {
useJUnitPlatform() //JUnit 테스트 플랫폼 사용
}
}

test {
useJUnitPlatform()
}

3 changes: 3 additions & 0 deletions common/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependencies {

}
Binary file added common/build/libs/common.jar
Binary file not shown.
2 changes: 2 additions & 0 deletions common/build/tmp/jar/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading
Loading