This repository has been archived by the owner on Jul 3, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
484 additions
and
682 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,119 +1,12 @@ | ||
# Created by .ignore support plugin (hsz.mobi) | ||
|
||
### JetBrains template | ||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm | ||
|
||
*.iml | ||
|
||
## Directory-based project format: | ||
.idea/ | ||
# if you remove the above rule, at least ignore the following: | ||
|
||
# User-specific stuff: | ||
# .idea/workspace.xml | ||
# .idea/tasks.xml | ||
# .idea/dictionaries | ||
|
||
# Sensitive or high-churn files: | ||
# .idea/dataSources.ids | ||
# .idea/dataSources.xml | ||
# .idea/sqlDataSources.xml | ||
# .idea/dynamic.xml | ||
# .idea/uiDesigner.xml | ||
|
||
# Gradle: | ||
# .idea/gradle.xml | ||
# .idea/libraries | ||
|
||
# Mongo Explorer plugin: | ||
# .idea/mongoSettings.xml | ||
|
||
## File-based project format: | ||
*.ipr | ||
*.iws | ||
|
||
## Plugin-specific files: | ||
|
||
# IntelliJ | ||
/out/ | ||
|
||
# mpeltonen/sbt-idea plugin | ||
.idea_modules/ | ||
|
||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
|
||
# Crashlytics plugin (for Android Studio and IntelliJ) | ||
com_crashlytics_export_strings.xml | ||
crashlytics.properties | ||
crashlytics-build.properties | ||
|
||
|
||
### Java template | ||
*.class | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.jar | ||
!/gradle/wrapper/gradle-wrapper.jar | ||
*.war | ||
*.ear | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
|
||
|
||
### Eclipse template | ||
*.pydevproject | ||
.metadata | ||
.gradle | ||
bin/ | ||
tmp/ | ||
*.tmp | ||
*.bak | ||
*.swp | ||
*~.nib | ||
local.properties | ||
.settings/ | ||
.loadpath | ||
|
||
# Eclipse Core | ||
.project | ||
|
||
# External tool builders | ||
.externalToolBuilders/ | ||
|
||
# Locally stored "Eclipse launch configurations" | ||
*.launch | ||
|
||
# CDT-specific | ||
.cproject | ||
|
||
# JDT-specific (Eclipse Java Development Tools) | ||
.classpath | ||
|
||
# PDT-specific | ||
.buildpath | ||
|
||
# sbteclipse plugin | ||
.target | ||
|
||
# TeXlipse plugin | ||
.texlipse | ||
|
||
|
||
### Maven template | ||
target/ | ||
pom.xml.tag | ||
pom.xml.releaseBackup | ||
pom.xml.versionsBackup | ||
pom.xml.next | ||
release.properties | ||
dependency-reduced-pom.xml | ||
buildNumber.properties | ||
.mvn/timing.properties | ||
|
||
/build/ | ||
|
||
# OSIAM dev | ||
.osiam/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,187 @@ | ||
buildscript { | ||
repositories { | ||
jcenter() | ||
} | ||
dependencies { | ||
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.4.1.RELEASE") | ||
} | ||
} | ||
|
||
plugins { | ||
id 'antlr' | ||
id 'java' | ||
id 'groovy' | ||
id 'war' | ||
id 'jacoco' | ||
id 'maven' | ||
id 'maven-publish' | ||
id 'com.github.kt3k.coveralls' version '2.6.3' | ||
id 'com.jfrog.bintray' version '1.7.1' | ||
} | ||
|
||
apply plugin: 'spring-boot' | ||
|
||
group = 'org.osiam' | ||
|
||
description = """OSIAM""" | ||
|
||
sourceCompatibility = 1.8 | ||
targetCompatibility = 1.8 | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
publishing { | ||
publications { | ||
OsiamPublication(MavenPublication){ | ||
from components.web | ||
groupId 'org.osiam' | ||
artifactId 'osiam' | ||
version "${project.version}" | ||
} | ||
} | ||
repositories { | ||
maven { | ||
name 'JFrog OSS snapshot repository' | ||
url 'https://oss.jfrog.org/artifactory/oss-snapshot-local' | ||
credentials { | ||
username System.getenv('BINTRAY_USER') | ||
password System.getenv('BINTRAY_KEY') | ||
} | ||
} | ||
} | ||
} | ||
|
||
bintray { | ||
user = System.getenv('BINTRAY_USER') | ||
key = System.getenv('BINTRAY_KEY') | ||
publications = ['OsiamPublication'] | ||
pkg { | ||
repo = 'OSIAM' | ||
name = 'org.osiam:osiam' | ||
userOrg = 'osiam' | ||
licenses = ['MIT'] | ||
vcsUrl = 'https://github.com/osiam/osiam.git' | ||
version { | ||
name = project.version | ||
released = new Date() | ||
} | ||
} | ||
|
||
} | ||
war { | ||
baseName = 'OSIAM' | ||
version = project.version | ||
} | ||
|
||
springBoot { | ||
executable = true | ||
} | ||
|
||
ext { | ||
generatedSourcesDir = new File("${projectDir}/build/generated") | ||
generatedSourcesJavaDir = new File(generatedSourcesDir, "/java") | ||
} | ||
|
||
configurations { | ||
jpaModelGen | ||
} | ||
|
||
dependencies { | ||
compile 'org.springframework.boot:spring-boot-starter-web' | ||
compile 'org.springframework.boot:spring-boot-starter-data-jpa' | ||
compile 'org.springframework.boot:spring-boot-starter-thymeleaf' | ||
compile 'org.springframework.boot:spring-boot-starter-security' | ||
compile 'org.springframework.security.oauth:spring-security-oauth2' | ||
compile 'org.springframework.boot:spring-boot-starter-tomcat' | ||
compile 'org.springframework.security:spring-security-ldap' | ||
compile 'org.springframework.boot:spring-boot-devtools' | ||
compile 'org.flywaydb:flyway-core' | ||
compile 'org.postgresql:postgresql' | ||
compile 'mysql:mysql-connector-java' | ||
compile 'com.h2database:h2' | ||
compile 'com.zaxxer:HikariCP' | ||
compile 'joda-time:joda-time' | ||
compile 'org.aspectj:aspectjrt' | ||
compile 'org.aspectj:aspectjweaver' | ||
compile 'org.hibernate:hibernate-validator' | ||
compile 'com.ryantenney.metrics:metrics-spring:3.1.3' | ||
compile 'io.dropwizard.metrics:metrics-json:3.1.2' | ||
compile 'io.dropwizard.metrics:metrics-jvm:3.1.2' | ||
compile 'org.apache.tika:tika-core:1.13' | ||
compile 'com.google.guava:guava:19.0' | ||
compile 'org.antlr:antlr4:4.5.3' | ||
testCompile 'org.codehaus.groovy:groovy-all' | ||
testCompile 'org.springframework.boot:spring-boot-starter-test' | ||
testCompile 'org.spockframework:spock-core' | ||
testCompile 'cglib:cglib-nodep:3.2.4' | ||
testCompile 'org.objenesis:objenesis:2.4' | ||
testCompile 'com.jayway.restassured:json-path:2.9.0' | ||
testCompile 'com.jayway.jsonpath:json-path:2.2.0' | ||
testCompile 'nl.jqno.equalsverifier:equalsverifier:1.7.8' | ||
|
||
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat") | ||
|
||
antlr 'org.antlr:antlr4:4.5.3' | ||
jpaModelGen 'org.hibernate:hibernate-jpamodelgen' | ||
} | ||
|
||
sourceSets { | ||
main { | ||
java { | ||
srcDir generatedSourcesJavaDir | ||
} | ||
} | ||
} | ||
|
||
task generateJPAMetaModel(type: JavaCompile, group: 'build', description: 'Generate JPA Meta Models') { | ||
source = sourceSets.main.java | ||
outputs.dir generatedSourcesJavaDir | ||
destinationDir = generatedSourcesJavaDir | ||
dependencyCacheDir = compileJava.dependencyCacheDir | ||
classpath = configurations.compile + configurations.jpaModelGen | ||
options.compilerArgs = [ | ||
"-proc:only" | ||
] | ||
} | ||
|
||
generateGrammarSource { | ||
outputDirectory = generatedSourcesJavaDir | ||
arguments += ["-visitor", "-long-messages"] | ||
} | ||
|
||
compileJava { | ||
dependsOn generateJPAMetaModel | ||
} | ||
|
||
jacoco { | ||
toolVersion = "0.7.7.201606060606" | ||
} | ||
|
||
jacocoTestReport { | ||
reports { | ||
xml.enabled true | ||
csv.enabled false | ||
html.enabled true | ||
} | ||
afterEvaluate { | ||
classDirectories = files(classDirectories.files.collect { | ||
fileTree(dir: it, exclude: [ | ||
'**/*_*', | ||
'**/LogicalOperatorRules*' | ||
]) | ||
}) | ||
} | ||
} | ||
check.dependsOn jacocoTestReport | ||
|
||
tasks.coveralls { | ||
group = 'Coverage reports' | ||
description = 'Uploads the aggregated coverage report to Coveralls' | ||
|
||
dependsOn jacocoTestReport | ||
onlyIf { | ||
System.env.'COVERALLS_REPO_TOKEN' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
version = latest-SNAPSHOT |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#Mon Oct 24 17:34:18 CEST 2016 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.1-all.zip |
Oops, something went wrong.