Skip to content

Commit

Permalink
[Team-m3c#4]🔄 h2 database 연결
Browse files Browse the repository at this point in the history
  • Loading branch information
seungueonn committed Jul 11, 2022
1 parent 85f5486 commit c492efa
Show file tree
Hide file tree
Showing 1,991 changed files with 548,063 additions and 3 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'

implementation 'org.springframework.boot:spring-boot-starter-jdbc'
runtimeOnly 'com.h2database:h2'
}

tasks.named('test') {
Expand Down
7 changes: 7 additions & 0 deletions h2/build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@echo off
if "%JAVA_HOME%"=="" echo Error: JAVA_HOME is not defined.
if "%1"=="clean" rmdir /s /q temp bin 2>nul
if not exist temp mkdir temp
if not exist bin mkdir bin
"%JAVA_HOME%/bin/javac" -sourcepath src/tools -d bin src/tools/org/h2/build/*.java
"%JAVA_HOME%/bin/java" -Djava.net.useSystemProxies=true -Xmx256m -cp "bin;%JAVA_HOME%/lib/tools.jar;temp" org.h2.build.Build %*
18 changes: 18 additions & 0 deletions h2/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh
if [ -z "$JAVA_HOME" ] ; then
if [[ "$OSTYPE" == "darwin"* ]]; then
if [ -d "/System/Library/Frameworks/JavaVM.framework/Home" ] ; then
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
else
export JAVA_HOME=`/usr/libexec/java_home`
fi
fi
fi
if [ -z "$JAVA_HOME" ] ; then
echo "Error: JAVA_HOME is not defined."
fi
if [ "$1" = "clean" ] ; then rm -rf temp bin ; fi
if [ ! -d "temp" ] ; then mkdir temp ; fi
if [ ! -d "bin" ] ; then mkdir bin ; fi
"$JAVA_HOME/bin/javac" -sourcepath src/tools -d bin src/tools/org/h2/build/*.java
"$JAVA_HOME/bin/java" -Xmx1g -cp "bin:$JAVA_HOME/lib/tools.jar:temp" org.h2.build.Build $@
Binary file added h2/docs/h2.pdf
Binary file not shown.
Loading

0 comments on commit c492efa

Please sign in to comment.