Skip to content

Commit

Permalink
actions변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Bayle0627 committed Jan 2, 2025
1 parent 9705690 commit 04fc047
Show file tree
Hide file tree
Showing 11 changed files with 54 additions and 53 deletions.
58 changes: 29 additions & 29 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
plugins {
kotlin("jvm") version "1.9.25"
kotlin("plugin.spring") version "1.9.25"
id("org.springframework.boot") version "3.4.1"
id("io.spring.dependency-management") version "1.1.7"
id ("org.jlleitschuh.gradle.ktlint") version "11.5.1"
kotlin("plugin.jpa") version "1.9.25"
kotlin("jvm") version "1.9.25"
kotlin("plugin.spring") version "1.9.25"
id("org.springframework.boot") version "3.4.1"
id("io.spring.dependency-management") version "1.1.7"
id("org.jlleitschuh.gradle.ktlint") version "11.5.1"
kotlin("plugin.jpa") version "1.9.25"
}

group = "com.wafflestudio.toyproject"
version = "0.0.1-SNAPSHOT"

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

repositories {
mavenCentral()
mavenCentral()
}

dependencies {
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.mindrot:jbcrypt:0.4")
implementation("com.mysql:mysql-connector-j:8.2.0")
implementation("io.jsonwebtoken:jjwt-api:0.11.5")
implementation("io.jsonwebtoken:jjwt-impl:0.11.5")
implementation("io.jsonwebtoken:jjwt-jackson:0.11.5")
implementation("org.springframework.boot:spring-boot-starter-oauth2-client")
testImplementation("org.springframework.boot:spring-boot-starter-test")
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.mindrot:jbcrypt:0.4")
implementation("com.mysql:mysql-connector-j:8.2.0")
implementation("io.jsonwebtoken:jjwt-api:0.11.5")
implementation("io.jsonwebtoken:jjwt-impl:0.11.5")
implementation("io.jsonwebtoken:jjwt-jackson:0.11.5")
implementation("org.springframework.boot:spring-boot-starter-oauth2-client")
testImplementation("org.springframework.boot:spring-boot-starter-test")
}

kotlin {
compilerOptions {
freeCompilerArgs.addAll("-Xjsr305=strict")
}
compilerOptions {
freeCompilerArgs.addAll("-Xjsr305=strict")
}
}

allOpen {
annotation("jakarta.persistence.Entity")
annotation("jakarta.persistence.MappedSuperclass")
annotation("jakarta.persistence.Embeddable")
annotation("jakarta.persistence.Entity")
annotation("jakarta.persistence.MappedSuperclass")
annotation("jakarta.persistence.Embeddable")
}

tasks.withType<Test> {
useJUnitPlatform()
useJUnitPlatform()
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ import org.springframework.boot.runApplication
class MemoWithTagsApplication

fun main(args: Array<String>) {
runApplication<MemoWithTagsApplication>(*args)
runApplication<MemoWithTagsApplication>(*args)
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
package com.wafflestudio.toyproject.memoWithTags.memo.controller

import com.wafflestudio.toyproject.memoWithTags.memo.service.MemoService
import org.springframework.web.bind.annotation.*
import org.springframework.web.bind.annotation.DeleteMapping
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.PutMapping
import org.springframework.web.bind.annotation.RequestBody
import org.springframework.web.bind.annotation.RestController
import java.time.Instant

@RestController
Expand All @@ -11,13 +16,11 @@ class MemoController(
@PostMapping("/api/v1/memo")
fun createMemo(@RequestBody request: CreateMemoResponse): MemoDto {
return MemoDto("", emptyList())

}

@PutMapping("/api/v1/memo/{memoId}")
fun updateMemo(@PathVariable memoId: Long, @RequestBody request: UpdateMemoResponse): MemoDto {
return MemoDto("", emptyList())

}

@DeleteMapping("/api/v1/memo/{memoId}")
Expand All @@ -44,4 +47,4 @@ data class UpdateMemoResponse(
val tags: List<Long>,
val createdAt: Instant,
val updatedAt: Instant
)
)
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.wafflestudio.toyproject.memoWithTags.memo.persistence

class MemoEntity {

}
class MemoEntity
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ package com.wafflestudio.toyproject.memoWithTags.memo.service
import org.springframework.stereotype.Service

@Service
class MemoService {
}
class MemoService
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
package com.wafflestudio.toyproject.memoWithTags.tag.controller

import com.wafflestudio.toyproject.memoWithTags.tag.service.TagService
import org.springframework.web.bind.annotation.*
import org.springframework.web.bind.annotation.DeleteMapping
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.PutMapping
import org.springframework.web.bind.annotation.RequestBody
import org.springframework.web.bind.annotation.RestController

@RestController
class TagController(
Expand Down Expand Up @@ -31,7 +37,7 @@ class TagController(
data class TagDto(
val id: Long,
val name: String,
val color: String,
val color: String
)

data class CreateTagRequest(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
package com.wafflestudio.toyproject.memoWithTags.tag.persistence

class TagEntity {
}
class TagEntity
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ package com.wafflestudio.toyproject.memoWithTags.tag.service
import org.springframework.stereotype.Service

@Service
class TagService {
}
class TagService
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
package com.wafflestudio.toyproject.memoWithTags.user.persistence

class UserEntity {
}
class UserEntity
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
package com.wafflestudio.toyproject.memoWithTags.user.service

class UserService {
}
class UserService
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import org.springframework.boot.test.context.SpringBootTest
@SpringBootTest
class MemoWithTagsApplicationTests {

@Test
fun contextLoads() {
}

@Test
fun contextLoads() {
}
}

0 comments on commit 04fc047

Please sign in to comment.