Init of Database

- don't look in the database, 'cause is a little messy
This commit is contained in:
2018-08-29 23:35:27 +02:00
parent 7b21345f89
commit 1f4a4b80c0
5 changed files with 118 additions and 46 deletions

View File

@@ -14,33 +14,48 @@ repositories {
}
dependencies {
// Tests
testCompile group: 'junit', name: 'junit', version: '4.12'
compile "com.sparkjava:spark-core:2.7.2"
compile "com.google.code.gson:gson:2.8.4"
// compile "org.xerial:sqlite-jdbc:3.21.0.1" //todo remove commenting because "You need to install an appropriate JDBC (Java Database Connectivity) driver to run your Java database programs."
compile 'org.apache.httpcomponents:httpclient:4.5.3'
compile 'com.google.api-client:google-api-client:1.23.0'
compile group: 'com.google.oauth-client', name: 'google-oauth-client-jetty', version: '1.11.0-beta'
// implementation 'junit:junit:4.12'
// GSON but works even without it anyway
// compile "com.google.code.gson:gson:2.8.4"
// z-way-lib and all its dependencies (from https://github.com/pathec/ZWay-library-for-Java)
// Database
compile "org.xerial:sqlite-jdbc:3.21.0.1"
// compile group: 'mysql', name: 'mysql-connector-java', version: '8.0.12'
// Rest request
compile 'org.apache.httpcomponents:httpclient:4.5.6'
// Z-way
compile files('lib/zway-lib-0.2.9-SNAPSHOT.jar')
compile 'org.apache.commons:commons-lang3:3.4'
compile 'org.eclipse.jetty:jetty-client:9.4.11.v20180605'
compile 'org.eclipse.jetty:jetty-http:9.4.11.v20180605'
compile 'org.eclipse.jetty:jetty-io:9.4.11.v20180605'
compile 'org.eclipse.jetty:jetty-util:9.4.11.v20180605'
compile 'org.eclipse.jetty.websocket:websocket-api:9.4.11.v20180605'
compile 'org.eclipse.jetty.websocket:websocket-client:9.4.11.v20180605'
compile 'org.eclipse.jetty.websocket:websocket-common:9.4.11.v20180605'
compile 'org.slf4j:slf4j-simple:1.7.21'
// Logger
compile 'org.slf4j:slf4j-simple:1.7.25'
//DialogFlow
// Server Spark
compile "com.sparkjava:spark-core:2.7.2"
// compile 'org.apache.commons:commons-lang3:3.4'
// compile group: 'org.eclipse.jetty', name: 'jetty-webapp', version: '9.4.11.v20180605'
// compile 'org.eclipse.jetty:jetty-client:9.4.11.v20180605'
// compile 'org.eclipse.jetty.websocket:websocket-server:9.4.11.v20180605'
// Oauth
compile( group: 'com.google.oauth-client', name: 'google-oauth-client-jetty', version: '1.23.0') {
// don't pull in an old ancient jetty version
// todo it doesn't seems to work
exclude(group: 'org.mortbay.jetty', module: 'jetty')
exclude(group: 'org.mortbay.jetty', module: 'jetty-util')
exclude(group: 'org.mortbay.jetty', module: 'servlet-api')
}
compile 'com.google.oauth-client:google-oauth-client-jetty:1.23.0'
compile 'com.google.api-client:google-api-client:1.23.0'
// DialogFlow
compile "ai.api:libai:1.6.12"
// compile 'com.google.cloud:google-cloud-dialogflow:0.59.0-alpha' // for the v2 of dialogflow
//for objectMapper
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.5'
implementation 'junit:junit:4.12'
// objectMapper for fitbitdata
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.5' // maybe duplicate in google-api
}