Skip to content

Commit 9cac2d1

Browse files
Tidyup (#1)
* General tidy up. Moved to correct package. * More clean ups: Java verstion 8 Depenendy graph tidied up
1 parent 9abb7b0 commit 9cac2d1

File tree

7 files changed

+21
-31
lines changed

7 files changed

+21
-31
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: java
22
sudo: true
3-
jdk: oraclejdk7
3+
jdk: oraclejdk8
44
script: "./gradle/travisBuild.sh"
55
before_cache:
66
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock

build.gradle

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,29 @@
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-
131
plugins {
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-
229
group 'au.com.console'
2310

2411
repositories {
25-
mavenCentral()
12+
jcenter()
2613
}
2714

15+
sourceCompatibility = JavaVersion.VERSION_1_8
16+
targetCompatibility = JavaVersion.VERSION_1_8
17+
2818
dependencies {
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-
4027
bintray {
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+
}

gradle/travisBuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

77
GRADLE_VERSION=$(./gradlew -version | grep Gradle | cut -d ' ' -f 2)
88

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Thu Sep 15 15:55:51 AEST 2016
1+
#Thu Sep 15 21:26:16 AEST 2016
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=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

src/main/kotlin/com/console/data/jpaspecificationdsl/JPASpecificationDSL.kt renamed to src/main/kotlin/au/com/console/jpaspecificationdsl/JPASpecificationDSL.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.console.data.jpaspecificationsdsl
1+
package au.com.console.jpaspecificationdsl
22

33
import org.springframework.data.jpa.domain.Specification
44
import org.springframework.data.jpa.domain.Specifications

src/test/kotlin/com/console/data/jpaspecificationsdsl/JPASpecificationDSLTest.kt renamed to src/test/kotlin/au/com/console/jpaspecificationdsl/JPASpecificationDSLTest.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
package com.console.data.jpaspecificationsdsl
1+
package au.com.console.jpaspecificationdsl
22

33
import 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
66
import org.junit.After
7-
import org.junit.Assert.assertEquals
87
import org.junit.Before
98
import org.junit.Test
109
import org.junit.runner.RunWith

src/test/kotlin/com/console/data/jpaspecificationsdsl/TvShowRepository.kt renamed to src/test/kotlin/au/com/console/jpaspecificationdsl/TvShowRepository.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.console.data.jpaspecificationsdsl
1+
package au.com.console.jpaspecificationdsl
22

33
import org.springframework.data.jpa.domain.Specifications
44
import org.springframework.data.jpa.repository.JpaSpecificationExecutor

0 commit comments

Comments
 (0)