Skip to content

Commit

Permalink
refactor: update dependency library, config useJUnitPlatform
Browse files Browse the repository at this point in the history
  • Loading branch information
javajigi committed May 20, 2020
1 parent 46b6754 commit 58dc23b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
30 changes: 17 additions & 13 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repositories {
}

ext {
springVersion = '5.1.8.RELEASE'
springVersion = '5.2.6.RELEASE'
tomcatVersion = '8.5.42'
}

Expand All @@ -35,26 +35,30 @@ dependencies {
implementation 'org.springframework:spring-web:' + springVersion

// aop
implementation 'org.aspectj:aspectjweaver:1.9.4'
implementation 'cglib:cglib:3.2.12'
implementation 'org.aspectj:aspectjweaver:1.9.5'
implementation 'cglib:cglib:3.3.0'

// etc
implementation 'org.reflections:reflections:0.9.11'
implementation 'org.reflections:reflections:0.9.12'
implementation 'ch.qos.logback:logback-classic:1.2.3'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.9.1'
implementation 'com.github.jknack:handlebars:4.1.2'
implementation 'com.google.guava:guava:28.0-jre'
implementation 'org.apache.ant:ant:1.10.6'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.11.0'
implementation 'com.github.jknack:handlebars:4.2.0'
implementation 'com.google.guava:guava:29.0-jre'
implementation 'org.apache.ant:ant:1.10.8'

// tomcat
implementation 'org.apache.tomcat.embed:tomcat-embed-core:' + tomcatVersion
implementation 'org.apache.tomcat.embed:tomcat-embed-logging-juli:8.5.2'
implementation 'org.apache.tomcat.embed:tomcat-embed-jasper:' + tomcatVersion

runtimeOnly 'com.h2database:h2:1.4.196'
testImplementation 'org.junit.jupiter:junit-jupiter:5.5.1'
testImplementation 'org.assertj:assertj-core:3.12.2'
runtimeOnly 'com.h2database:h2:1.4.200'
testImplementation 'org.junit.jupiter:junit-jupiter:5.6.2'
testImplementation 'org.assertj:assertj-core:3.16.1'
testImplementation 'org.springframework:spring-test:' + springVersion
testImplementation 'io.projectreactor.netty:reactor-netty:0.8.10.RELEASE'
testImplementation 'io.projectreactor.netty:reactor-netty:0.9.7.RELEASE'
testImplementation 'org.springframework:spring-webflux:' + springVersion
}
}

test {
useJUnitPlatform()
}
4 changes: 2 additions & 2 deletions src/main/java/next/config/MyConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class MyConfiguration {
public DataSource dataSource() {
BasicDataSource ds = new BasicDataSource();
ds.setDriverClassName("org.h2.Driver");
ds.setUrl("jdbc:h2:~/jwp-framework;MVCC=TRUE;DB_CLOSE_ON_EXIT=FALSE");
ds.setUrl("jdbc:h2:mem://localhost/~/jwp-jdbc;DB_CLOSE_DELAY=-1");
ds.setUsername("sa");
ds.setPassword("");
return ds;
Expand All @@ -25,4 +25,4 @@ public DataSource dataSource() {
public JdbcTemplate jdbcTemplate(DataSource dataSource) {
return new JdbcTemplate(dataSource);
}
}
}

0 comments on commit 58dc23b

Please sign in to comment.