Skip to content

Commit

Permalink
Merge pull request #9 from IntershopCommunicationsAG/updategradle4
Browse files Browse the repository at this point in the history
Update to Gradle 4
  • Loading branch information
m-raab authored Nov 26, 2017
2 parents 86bc4bf + dbaa7b4 commit 9f82768
Show file tree
Hide file tree
Showing 8 changed files with 179 additions and 166 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: java
sudo: false
jdk:
- oraclejdk7
- oraclejdk8
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
Expand Down
33 changes: 14 additions & 19 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,20 @@ plugins {
// ide plugin
id 'idea'

// intershop test plugin
id 'com.intershop.gradle.test' version '2.2.0'

// plugin for documentation
id 'org.asciidoctor.convert' version '1.5.3'

// publish plugin
id 'maven-publish'

// intershop version plugin
id 'com.intershop.gradle.scmversion' version '2.3.4'
id 'com.intershop.gradle.scmversion' version '3.2.0'

// plugin for documentation
id 'org.asciidoctor.convert' version '1.5.3'

// plugin for publishing to Gradle Portal
id 'com.gradle.plugin-publish' version '0.9.7'
id 'com.gradle.plugin-publish' version '0.9.9'

// plugin for publishing to jcenter
id 'com.jfrog.bintray' version '1.7.3'
id 'com.jfrog.bintray' version '1.8.0'
}

scm {
Expand All @@ -38,19 +35,18 @@ group 'com.intershop.gradle.repoconfig'
description 'Repository Configuration Init Script Plugin for project teams or companies'
version = scm.version.version

// plugins should work with JDK 1.7 aslong
// older INTERSHOP version use this version of JDK
sourceCompatibility = 1.7
targetCompatibility = 1.7
sourceCompatibility = 1.8
targetCompatibility = 1.8

// set correct project status
if (project.version.endsWith('-SNAPSHOT')) {
status = 'snapshot'
}

test {
systemProperty 'intershop.classpath', project.sourceSets.main.output.getClassesDirs().getAsPath()
// Gradle versions for test
systemProperty 'intershop.gradle.versions', '2.11, 3.4.1'
systemProperty 'intershop.gradle.versions', '4.3.1'
}

task copyAsciiDoc {
Expand Down Expand Up @@ -136,7 +132,7 @@ publishing {
}

pom.withXml {
def Node root = asNode();
def Node root = asNode()
root.appendNode('name', project.name)
root.appendNode('description', project.description)
root.appendNode('url', "https:/gitlab.intershop.de/IntershopGradlePlugins/${project.name}")
Expand All @@ -149,7 +145,7 @@ publishing {
org.appendNode( 'name', 'Intershop Communications' )
org.appendNode( 'url', 'http://intershop.com' )

def license = root.appendNode( 'licenses' ).appendNode( 'license' );
def license = root.appendNode( 'licenses' ).appendNode( 'license' )
license.appendNode( 'name', 'Apache License, Version 2.0' )
license.appendNode( 'url', 'http://www.apache.org/licenses/LICENSE-2.0' )
license.appendNode( 'distribution', 'repo' )
Expand Down Expand Up @@ -192,9 +188,8 @@ bintray {
bintrayUpload.dependsOn asciidoctor

dependencies {
testCompile('org.spockframework:spock-core:1.0-groovy-2.4') {
exclude group: 'org.codehaus.groovy'
}
testCompile 'com.intershop.gradle.test:test-gradle-plugin:3.0.0'
testCompile gradleTestKit()
}

repositories {
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.3.1-all.zip
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 Intershop Communications AG.
* Copyright 2017 Intershop Communications AG.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -13,9 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.intershop.gradle.repoconfig

import groovy.transform.CompileStatic

@CompileStatic
class RepoConfigExtension {

/**
Expand Down
Loading

0 comments on commit 9f82768

Please sign in to comment.