-
Notifications
You must be signed in to change notification settings - Fork 1
π Chore : νλ‘μ νΈ μ΄κΈ°ν #9
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
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
d3ac78b
β¨ Feat : `.gitmessage`
ooMia 699508a
β¨ Feat : `.gitmessage` (#5)
ooMia a8de1ef
π Chore : Spring νλ‘μ νΈ μ΄κΈ°ν
ooMia 11dbd19
π Fix : κ²½κ³ μ΅μ λ₯Ό μν λΉλ μ€μ
ooMia e45f326
β¨ Feat : Build Optimizing
ooMia afb2937
νλ‘μ νΈ μ΄κΈ°ν (#8)
ooMia 7a1b196
π Chore : GitHub Actions ν΅ν© ν
μ€νΈ
ooMia 8a32f24
π Fix : μ ν¨νμ§ μμ μΊμν€ μ΄μ
ooMia bf76ac8
π Fix : remove redundancy
ooMia a32a1dd
β¨ Feat : test μ μ±
λ³κ²½
ooMia 67cda93
π Fix : μΊμ± κΈ°λ₯
ooMia ab97641
π Fix : `main` μ΄μΈ λΈλμΉ μΊμ±
ooMia 313be39
π Chore : GitHub Actions ν΅ν© ν
μ€νΈ (#10)
ooMia 08012af
Merge branch 'main' into develop
ooMia 54cb01e
π Docs : PR template
ooMia e5429f8
π Docs : PR template (#12)
ooMia be9016c
π Fix : `.gitmessage` format μΆκ°
ooMia f94eab1
π Fix : `.gitmessage` format μΆκ° (#13)
ooMia 0387631
π¨ Style : polishing
ooMia 453fdb6
π Chore : simplify dependency
ooMia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 4 | ||
indent_style = space | ||
insert_final_newline = true | ||
max_line_length = 120 | ||
tab_width = 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
## κ°μ | ||
|
||
<!-- μ΄ PRμ 무μμ νλμ§ κ°λ¨ν μ€λͺ ν΄μ£ΌμΈμ. | ||
- μλ‘μ΄ λ‘κ·ΈμΈ κΈ°λ₯ μΆκ° | ||
--> | ||
|
||
## λ³κ²½ μ¬ν | ||
|
||
<!-- μ΄ PRλ‘ μΈν΄ μ΄λ€ κ²μ΄ λ³κ²½λλμ§ λμ΄ν΄μ£ΌμΈμ. | ||
- [x] π Fix : μ€λ₯ μμ | ||
- [x] β¨ Feat : μλ‘μ΄ κΈ°λ₯ | ||
- [x] π§ Modify : μμΉ λ³κ²½ | ||
- [x] π€ Refactor : μ½λ 리ν©ν λ§ | ||
- [x] β Test : ν μ€νΈ μ½λ μΆκ° | ||
- [x] π‘ Comment : νμν μ£Όμ μΆκ° λ° λ³κ²½ | ||
- [x] π Chore : νκ²½μ€μ λ³κ²½ | ||
- [x] π¨ Style : μλ―Έ μλ μ½λ νμ μμ | ||
- [x] π₯ Remove : μμ | ||
- [x] π Docs : λ¬Έμ μμ | ||
--> | ||
|
||
## μΆκ° μ 보 | ||
|
||
<!-- μ΄ PRμ λν΄ νμν νμ μμ μ΄ μλ€λ©΄ μΆκ°ν΄μ£ΌμΈμ. | ||
- [ ] λ‘κ·ΈμΈ νμ΄μ§ μΆκ° νμ | ||
- [ ] λ‘κ·ΈμΈ API μ°κ²° νμ | ||
--> | ||
|
||
### κ΄λ ¨ μ΄μ | ||
|
||
<!-- | ||
λ¬Έμ λ₯Ό ν΄κ²°νλ€λ©΄ Fix λλ Resolve | ||
μΌλ°μ μΌλ‘λ Closes #123 | ||
--> | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Run gradlew clean test on main | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'liberica' | ||
java-version: '17' | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Run gradlew clean test on main | ||
run: ./gradlew clean test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Run gradlew test | ||
|
||
on: | ||
pull_request: | ||
branches-ignore: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'liberica' | ||
java-version: '17' | ||
|
||
- name: Cache Gradle packages | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Run gradlew test | ||
run: ./gradlew test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
β¨ Feat : μλ‘μ΄ κΈ°λ₯ | ||
π Fix : μ€λ₯ μμ | ||
π§ Modify : μμΉ λ³κ²½ | ||
π₯ Remove : μμ | ||
π€ Refactor : μ½λ 리ν©ν λ§ | ||
β Test : ν μ€νΈ μ½λ μΆκ° | ||
π‘ Comment : νμν μ£Όμ μΆκ° λ° λ³κ²½ | ||
π Chore : νκ²½μ€μ λ³κ²½ | ||
π¨ Style : μλ―Έ μλ μ½λ νμ μμ | ||
π Docs : λ¬Έμ μμ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
plugins { | ||
java | ||
id("org.springframework.boot") version "3.2.4" | ||
id("io.spring.dependency-management") version "1.1.4" | ||
} | ||
|
||
group = "com.thread" | ||
version = "0.1.0-SNAPSHOT" | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation("org.springframework.boot:spring-boot-starter") | ||
testImplementation("org.springframework.boot:spring-boot-starter-test") | ||
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2") | ||
} | ||
|
||
tasks { | ||
all { | ||
outputs.cacheIf { true } | ||
} | ||
} | ||
|
||
tasks.test { | ||
jvmArgs("-Xshare:off") | ||
useJUnitPlatform() | ||
} | ||
|
||
apply(from = "dumpJsa.gradle.kts") | ||
tasks.withType<JavaExec> { | ||
dependsOn("dumpJsa") | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import org.gradle.api.tasks.Exec | ||
import org.gradle.api.tasks.bundling.Jar | ||
import java.nio.file.Files | ||
import java.nio.file.Paths | ||
|
||
open class DumpJsa : Exec() { | ||
init { | ||
group = "application" | ||
description = "Dumps the .jsa file if it does not exist or is not up-to-date." | ||
val bootJarTask = project.tasks.named("bootJar").get() | ||
val jarTask = bootJarTask as Jar | ||
val jarFile = jarTask.archiveFile.get().asFile | ||
bootJarTask.onlyIf { | ||
!jarFile.exists() || jarTask.inputs.files.any { it.isFile && it.lastModified() > jarFile.lastModified() } | ||
} | ||
dependsOn(bootJarTask) | ||
} | ||
} | ||
|
||
tasks.register<DumpJsa>("dumpJsa") { | ||
val jsaPathMain = "build/resources/main/sharedArchive.jsa" | ||
val jarPath = "build/libs/${project.name}-${project.version}.jar" | ||
|
||
val jsaFile = Paths.get(jsaPathMain) | ||
val jarFile = Paths.get(jarPath) | ||
val isJsaOutdated = | ||
Files.notExists(jsaFile) || Files.getLastModifiedTime(jarFile).toMillis() > Files.getLastModifiedTime(jsaFile) | ||
.toMillis() | ||
|
||
if (isJsaOutdated) { | ||
val commandMain = listOf("java", "-Xshare:dump", "-XX:SharedArchiveFile=$jsaPathMain", "-jar", jarPath) | ||
commandLine(commandMain) | ||
} | ||
} |
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# | ||
# Copyright 2012-2024 the original author or authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.