Skip to content

Commit

Permalink
Merge pull request #24 from mummhy0811/main
Browse files Browse the repository at this point in the history
Setting: java 17->11로 수정
  • Loading branch information
mummhy0811 authored Oct 14, 2023
2 parents 32be4dd + 89e6145 commit 52a87f2
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 31 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:

# JDK setting - github actions에서 사용할 JDK 설정 (프로젝트나 AWS의 java 버전과 달라도 무방)
- uses: actions/checkout@v3
- name: Set up JDK 17
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
java-version: '11'
distribution: 'temurin'

# gradle caching - 빌드 시간 향상
- name: Gradle Caching
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# open jdk 17 버전의 환경을 구성
FROM openjdk:17-alpine
# open jdk 11 버전의 환경을 구성
FROM adoptopenjdk/openjdk11:latest

# build가 되는 시점에 JAR_FILE이라는 변수 명에 build/libs/*.jar 선언
# build/libs - gradle로 빌드했을 때 jar 파일이 생성되는 경로
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
plugins {
id 'java'
id 'org.springframework.boot' version '3.1.4'
id 'io.spring.dependency-management' version '1.1.3'
id 'org.springframework.boot' version '2.7.14'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
}

group = 'com.onestep'
version = '0.0.1-SNAPSHOT'

java {
sourceCompatibility = '17'
sourceCompatibility = '11'
}

configurations {
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/onestep/server/ServerApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

@SpringBootApplication
public class ServerApplication {

static {
System.setProperty("com.amazonaws.sdk.disableEc2Metadata", "true");
}
public static void main(String[] args) {
SpringApplication.run(ServerApplication.class, args);
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onestep/server/entity/Answer.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.onestep.server.entity;

import jakarta.persistence.*;
import javax.persistence.*;
import lombok.*;
import org.hibernate.annotations.ColumnDefault;
import jakarta.persistence.Id;
import javax.persistence.Id;

import java.util.Date;

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onestep/server/entity/Comment.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.onestep.server.entity;

import jakarta.persistence.*;
import javax.persistence.*;
import lombok.*;
import jakarta.persistence.Id;
import javax.persistence.Id;

import java.util.Date;

Expand Down
10 changes: 5 additions & 5 deletions src/main/java/com/onestep/server/entity/Family.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.onestep.server.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Temporal;
import jakarta.persistence.TemporalType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import lombok.*;
import org.hibernate.annotations.ColumnDefault;
import jakarta.persistence.Id;
import javax.persistence.Id;

import java.util.Date;

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onestep/server/entity/Letter.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.onestep.server.entity;

import jakarta.persistence.*;
import javax.persistence.*;
import lombok.*;
import jakarta.persistence.Id;
import javax.persistence.Id;

import java.util.Date;

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onestep/server/entity/PhotoBook.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.onestep.server.entity;

import jakarta.persistence.*;
import javax.persistence.*;
import lombok.*;
import jakarta.persistence.Id;
import javax.persistence.Id;

import java.util.Date;

Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/onestep/server/entity/Question.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.onestep.server.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.JoinColumn;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import lombok.*;
import jakarta.persistence.Id;
import javax.persistence.Id;

@ToString
@Getter
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onestep/server/entity/Quiz.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.onestep.server.entity;

import jakarta.persistence.*;
import javax.persistence.*;
import lombok.*;
import jakarta.persistence.Id;
import javax.persistence.Id;

import java.util.Date;

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onestep/server/entity/User.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.onestep.server.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.persistence.*;
import javax.persistence.*;
import lombok.*;
import jakarta.persistence.Id;
import javax.persistence.Id;

import java.util.Date;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.amazonaws.services.s3.AmazonS3Client;
import com.amazonaws.services.s3.model.CannedAccessControlList;
import com.amazonaws.services.s3.model.PutObjectRequest;
import jakarta.persistence.PersistenceContext;
import javax.persistence.PersistenceContext;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down

0 comments on commit 52a87f2

Please sign in to comment.