File tree Expand file tree Collapse file tree 7 files changed +21
-31
lines changed
main/kotlin/au/com/console/jpaspecificationdsl
test/kotlin/au/com/console/jpaspecificationdsl Expand file tree Collapse file tree 7 files changed +21
-31
lines changed Original file line number Diff line number Diff line change 11language : java
22sudo : true
3- jdk : oraclejdk7
3+ jdk : oraclejdk8
44script : " ./gradle/travisBuild.sh"
55before_cache :
66 - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
Original file line number Diff line number Diff line change 1-
2- buildscript {
3- ext. kotlin_version = ' 1.0.3'
4-
5- repositories {
6- jcenter()
7- }
8- dependencies {
9- classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
10- }
11- }
12-
131plugins {
2+ id ' nebula.kotlin' version ' 1.0.3'
143 id ' nebula.project' version ' 3.3.0'
154 id ' nebula.release' version ' 4.1.0'
165 id ' nebula.maven-publish' version ' 4.9.1'
176 id ' nebula.nebula-bintray' version ' 3.3.4'
187}
198
20- apply plugin : ' kotlin'
21-
229group ' au.com.console'
2310
2411repositories {
25- mavenCentral ()
12+ jcenter ()
2613}
2714
15+ sourceCompatibility = JavaVersion . VERSION_1_8
16+ targetCompatibility = JavaVersion . VERSION_1_8
17+
2818dependencies {
29- compile " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
30- compile ' org.springframework.boot:spring-boot-starter-data-jpa:1.3.5.RELEASE'
19+ compile ' org.springframework.data:spring-data-jpa:1.10.2.RELEASE'
20+ compileOnly ' org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.0.Final'
21+ testCompile ' org.springframework.boot:spring-boot-starter-data-jpa:1.3.5.RELEASE'
3122 testCompile ' com.h2database:h2:1.4.191'
3223 testCompile ' org.springframework.boot:spring-boot-starter-test:1.3.5.RELEASE'
3324 testCompile ' junit:junit:4.12'
3425}
3526
36- task wrapper (type : Wrapper ) {
37- gradleVersion = " 3.0"
38- }
39-
4027bintray {
4128 user = System . getenv(' BINTRAY_USER' )
4229 key = System . getenv(' BINTRAY_KEY' )
@@ -52,3 +39,7 @@ bintray {
5239 vcsUrl = " https://github.com/consoleau/${ project.name} .git"
5340 }
5441}
42+
43+ task wrapper (type : Wrapper ) {
44+ gradleVersion = " 3.0"
45+ }
Original file line number Diff line number Diff line change 22# This script will build the project.
33# Based on https://github.com/nebula-plugins/nebula-kotlin-plugin/blob/master/gradle/buildViaTravis.sh
44
5- SWITCHES=" -x artifactoryPublish - -info --stacktrace"
5+ SWITCHES=" --info --stacktrace"
66
77GRADLE_VERSION=$( ./gradlew -version | grep Gradle | cut -d ' ' -f 2)
88
Original file line number Diff line number Diff line change 1- # Thu Sep 15 15:55:51 AEST 2016
1+ # Thu Sep 15 21:26:16 AEST 2016
22distributionBase =GRADLE_USER_HOME
33distributionPath =wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
6- distributionUrl =https\://services.gradle.org/distributions/gradle-2.13 -bin.zip
6+ distributionUrl =https\://services.gradle.org/distributions/gradle-3.0 -bin.zip
Original file line number Diff line number Diff line change 1- package com.console.data.jpaspecificationsdsl
1+ package au. com.console.jpaspecificationdsl
22
33import org.springframework.data.jpa.domain.Specification
44import org.springframework.data.jpa.domain.Specifications
Original file line number Diff line number Diff line change 1- package com.console.data.jpaspecificationsdsl
1+ package au. com.console.jpaspecificationdsl
22
33import org.hamcrest.MatcherAssert.assertThat
4- import org.hamcrest.Matchers
5- import org.hamcrest.Matchers.*
4+ import org.hamcrest.Matchers.containsInAnyOrder
5+ import org.hamcrest.Matchers.equalTo
66import org.junit.After
7- import org.junit.Assert.assertEquals
87import org.junit.Before
98import org.junit.Test
109import org.junit.runner.RunWith
Original file line number Diff line number Diff line change 1- package com.console.data.jpaspecificationsdsl
1+ package au. com.console.jpaspecificationdsl
22
33import org.springframework.data.jpa.domain.Specifications
44import org.springframework.data.jpa.repository.JpaSpecificationExecutor
You can’t perform that action at this time.
0 commit comments