113 lines
2.6 KiB
Groovy
113 lines
2.6 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
maven { url "https://repo.maven.apache.org/maven2" }
|
|
maven { url "https://plugins.gradle.org/m2/" }
|
|
jcenter()
|
|
}
|
|
dependencies {
|
|
classpath 'com.google.code.gson:gson:2.8.5'
|
|
classpath 'org.jooq:jooq-codegen:3.11.9'
|
|
classpath 'org.postgresql:postgresql:42.2.5'
|
|
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:latest.release'
|
|
classpath 'nu.studer:gradle-jooq-plugin:3.0.2'
|
|
}
|
|
}
|
|
|
|
apply plugin: 'java'
|
|
apply plugin: 'maven'
|
|
apply plugin: 'war'
|
|
apply plugin: 'eclipse'
|
|
apply plugin: 'nu.studer.jooq'
|
|
|
|
group = 'jottyfan'
|
|
version = '1.0.1'
|
|
|
|
description = """timetrack"""
|
|
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
|
|
tasks.withType(JavaCompile) {
|
|
options.encoding = 'UTF-8'
|
|
}
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
maven { url "http://jottyfan.de/mvnrepo" }
|
|
maven { url "https://repo.maven.apache.org/maven2" }
|
|
}
|
|
|
|
dependencies {
|
|
compile 'org.apache.myfaces.core:myfaces-api:2.2.12'
|
|
compile 'org.apache.myfaces.core:myfaces-impl:2.2.12'
|
|
compile 'net.bootsfaces:bootsfaces:1.4.1'
|
|
compile 'de.jooqFaces:jooqFaces:0.1.3-SNAPSHOT'
|
|
compile 'org.postgresql:postgresql:42.2.5'
|
|
compile 'org.jooq:jooq:3.11.9'
|
|
compile 'org.jooq:jooq-codegen:3.11.9'
|
|
compile 'com.google.code.gson:gson:2.8.5'
|
|
compile 'org.jasypt:jasypt:1.9.2'
|
|
compile 'javax.servlet:javax.servlet-api:3.1.0'
|
|
compile 'org.apache.logging.log4j:log4j-core:2.11.1'
|
|
compile 'org.apache.logging.log4j:log4j-api:2.11.1'
|
|
|
|
testCompile 'junit:junit:4.12'
|
|
|
|
runtime 'org.postgresql:postgresql:42.2.5'
|
|
|
|
jooqRuntime 'org.postgresql:postgresql:42.2.5'
|
|
}
|
|
|
|
jooq {
|
|
edition = 'OSS'
|
|
version = '3.11.9'
|
|
timetrack (sourceSets.main) {
|
|
jdbc {
|
|
driver = 'org.postgresql.Driver'
|
|
url = 'jdbc:postgresql://localhost:5432/timetrack'
|
|
user = "jooq"
|
|
password = ""
|
|
}
|
|
generator {
|
|
name = 'org.jooq.codegen.DefaultGenerator'
|
|
database {
|
|
name = 'org.jooq.meta.postgres.PostgresDatabase'
|
|
schemata {
|
|
schema {
|
|
inputSchema = 'done'
|
|
}
|
|
schema {
|
|
inputSchema = 'profile'
|
|
}
|
|
schema {
|
|
inputSchema = 'contact'
|
|
}
|
|
schema {
|
|
inputSchema = 'note'
|
|
}
|
|
}
|
|
includes = '.*'
|
|
}
|
|
generate {
|
|
relations = true
|
|
records = true
|
|
}
|
|
target {
|
|
packageName = 'de.jottyfan.timetrack.db'
|
|
directory = 'src/jooq/java'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
war {
|
|
archiveName 'timetrack.war'
|
|
}
|
|
// removes the task dependency from compileJava to generateTimetrackJooqSchemaSource
|
|
project.tasks.getByName('compileJava').dependsOn -= 'generateTimetrackJooqSchemaSource'
|
|
|
|
|