diff --git a/gradle-examples/3/README.md b/gradle-examples/3/README.md deleted file mode 100644 index 1ecd5204d..000000000 --- a/gradle-examples/3/README.md +++ /dev/null @@ -1,61 +0,0 @@ -## Gradle Artifactory Plugin Version 3 Examples -Sample projects that use the Gradle Artifactory Plugin. -The plugin adds the "artifactoryPublish" task. -The Plugin documenation is available at: -https://www.jfrog.com/confluence/display/RTF/Gradle+Artifactory+Plugin - -#### Running the examples -```console -> gradle artifactoryPublish - -or with the gradle wrapper in Unix - -> ./gradlew artifactoryPublish - -and the gradle wrapper in Windows - -> gradlew.bat artifactoryPublish -``` - -### gradle-example-minimal -A minimal sample project that uses the Gradle Artifactory Plugin to resolve and publish artifacts to Artifactory. - -### gradle-example-ci-server -Gradle sample project to be used with one of the Artifactory CI Server Plugins (Jenkins, TeamCity or Bamboo). -The Artifactory configuration in this case (repositories, Artifactory credentials, etc.) -is done from the CI Server UI. -You can still add the artifactory closure to the build script and have default values configured there, -but the values configured in the CI Server override them. -In this example, the only Artifactory property configured is "artifactoryPublish.skip = true". - -#### Important notes for using this example from a CI Server: - -* Make sure to have the "Project uses the Artifactory Gradle Plugin" check box in the CI Server UI unchecked, so that the CI Server Plugin automatically applies the Gradle Artifactory Plugin to your -build script. -* In order to publish the build artifacts to Artifactory, the published arrtifacts are added to the archives Gradle configuration. - -### gradle-example-ci-server-bintray-info -Same as *gradle-example-ci-server*, but also creates a bintray-info descriptor file and adds to the build artifacts -to be deployed to Artifactory, so that the build artifacts can be later published to Bintray from Artifactory. - -### gradle-example -Sample project that uses the Gradle Artifactory Plugin with Gradle Configurations. - -### gradle-example-publish -Sample project that uses the Gradle Artifactory Plugin with Gradle Publications. - -### gradle-android-aar -Sample project that uses the Gradle Artifactory Plugin to deploy Android artifacts to Artifactory. - -### gradle-example-bintray-info -Sample project that uses the Gradle Artifactory Plugin with Gradle Configurations. -The project creates a bintray-info descriptor file and adds to the build artifacts to be deployed to Artifactory, -so that the build artifacts can be later published to Bintray from Artifactory. - -### gradle-example-publish-bintray-info -Sample project that uses the Gradle Artifactory Plugin with Gradle Publications. -The project creates a bintray-info descriptor file and adds to the build artifacts to be deployed to Artifactory, -so that the build artifacts can be later published to Bintray from Artifactory. - -### gradle-jcenter-resolve -Resolves a dependency from jcenter. diff --git a/gradle-examples/3/gradle-android-aar/README.md b/gradle-examples/3/gradle-android-aar/README.md deleted file mode 100644 index 1ae3c550a..000000000 --- a/gradle-examples/3/gradle-android-aar/README.md +++ /dev/null @@ -1,18 +0,0 @@ -Artifactory Plugin with Android Sample -========================== - -## Building - -The build [Android SDK](http://developer.android.com/sdk/index.html) -should be installed in your development environment. In addition you'll need to set -the `ANDROID_HOME` environment variable to the location of your SDK: - -```bash -export ANDROID_HOME=/opt/tools/android-sdk -``` - -After satisfying those requirements, the build is pretty simple: - -* Run `gradlew artifactoryPublish` from the `app` directory to build the aar - - diff --git a/gradle-examples/3/gradle-android-aar/build.gradle b/gradle-examples/3/gradle-android-aar/build.gradle deleted file mode 100644 index 303aee36c..000000000 --- a/gradle-examples/3/gradle-android-aar/build.gradle +++ /dev/null @@ -1,102 +0,0 @@ -buildscript { - repositories { - maven { - url 'http://jcenter.bintray.com' - } - } - dependencies { - classpath 'com.android.tools.build:gradle:0.9.2' - classpath 'com.github.dcendents:android-maven-plugin:1.0' - classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:3.2.0' - } -} - -group = 'org.jfrog.example.android' -version = currentVersion - -// Plugins -apply plugin: 'android-library' -apply plugin: 'com.jfrog.artifactory-upload' - -// We need the patched maven plugin since 'install' task is overriden by 'installDebugTest', see: https://github.com/dcendents/android-maven-plugin -apply plugin: 'android-maven' - -// Android -android { - compileSdkVersion 19 - buildToolsVersion "19.0.3" - - defaultConfig { - minSdkVersion 16 - targetSdkVersion 19 - } -} - -configurations { - published -} - -task sourceJar(type: Jar) { - from android.sourceSets.main.java - classifier "sources" -} - -artifactoryPublish { - dependsOn sourceJar -} - -artifacts { - published sourceJar -} - -configure(install.repositories.mavenInstaller) { - pom.project { - licenses { - license { - name 'The Apache Software License, Version 2.0' - url 'http://www.apache.org/licenses/LICENSE-2.0.txt' - distribution 'repo' - } - } - } - } - -artifactory { - contextUrl = 'http://localhost:8081/artifactory' - publish { - repository { - repoKey = 'libs-snapshot-local' // The Artifactory repository key to publish to - username = "${artifactory_user}" // The publisher user name - password = "${artifactory_password}" // The publisher password - } - defaults { - publishConfigs('archives', 'published') - properties = ['build.status': "$it.project.status".toString()] - publishPom = true //Publish generated POM files to Artifactory (true by default) - publishIvy = false //Publish generated Ivy descriptor files to Artifactory (true by default) - } - } - resolve { - repository { - repoKey = 'jcenter' - username = "${artifactory_user}" // The resolver user name - password = "${artifactory_password}" // The resolver password - } - } -} - -repositories { - jcenter() -} - -// Our project dependencies -dependencies { - compile 'joda-time:joda-time:2.3' - - // Backward compatibility for andoird - // compile 'com.android.support:support-v4:19.1.+' -} - -task wrapper(type: Wrapper) { - gradleVersion = '1.11' -} diff --git a/gradle-examples/3/gradle-android-aar/gradle.properties b/gradle-examples/3/gradle-android-aar/gradle.properties deleted file mode 100644 index d9961566e..000000000 --- a/gradle-examples/3/gradle-android-aar/gradle.properties +++ /dev/null @@ -1,4 +0,0 @@ -currentVersion=1.0-SNAPSHOT -artifactory_user=admin -artifactory_password=password - diff --git a/gradle-examples/3/gradle-android-aar/gradle/wrapper/gradle-wrapper.properties b/gradle-examples/3/gradle-android-aar/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index e9dd750ff..000000000 --- a/gradle-examples/3/gradle-android-aar/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Mon Jul 20 09:52:53 IDT 2015 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-1.10-bin.zip diff --git a/gradle-examples/3/gradle-android-aar/src/main/AndroidManifest.xml b/gradle-examples/3/gradle-android-aar/src/main/AndroidManifest.xml deleted file mode 100644 index a98105dc4..000000000 --- a/gradle-examples/3/gradle-android-aar/src/main/AndroidManifest.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/gradle-examples/3/gradle-android-aar/src/main/java/org/hello/HelloActivity.java b/gradle-examples/3/gradle-android-aar/src/main/java/org/hello/HelloActivity.java deleted file mode 100644 index e5ba5c451..000000000 --- a/gradle-examples/3/gradle-android-aar/src/main/java/org/hello/HelloActivity.java +++ /dev/null @@ -1,25 +0,0 @@ -package org.hello; - -import org.joda.time.LocalTime; - -import android.app.Activity; -import android.os.Bundle; -import android.widget.TextView; - -public class HelloActivity extends Activity { - - @Override - public void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.hello_layout); - } - - @Override - public void onStart() { - super.onStart(); - LocalTime currentTime = new LocalTime(); - TextView textView = (TextView) findViewById(R.id.text_view); - textView.setText("The current local time is: " + currentTime); - } - -} \ No newline at end of file diff --git a/gradle-examples/3/gradle-android-aar/src/main/res/layout/hello_layout.xml b/gradle-examples/3/gradle-android-aar/src/main/res/layout/hello_layout.xml deleted file mode 100644 index 9ec99d25d..000000000 --- a/gradle-examples/3/gradle-android-aar/src/main/res/layout/hello_layout.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/gradle-examples/3/gradle-android-aar/src/main/res/values/strings.xml b/gradle-examples/3/gradle-android-aar/src/main/res/values/strings.xml deleted file mode 100644 index f8a3c1006..000000000 --- a/gradle-examples/3/gradle-android-aar/src/main/res/values/strings.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - Android Gradle - \ No newline at end of file diff --git a/gradle-examples/3/gradle-example-bintray-info/bintray-info-template.json b/gradle-examples/3/gradle-example-bintray-info/bintray-info-template.json deleted file mode 100644 index 22e5f59f3..000000000 --- a/gradle-examples/3/gradle-example-bintray-info/bintray-info-template.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "package": { - "name": "auto-upload", - "repo": "test", - "subject": "myBintrayUser", - "desc": "I was pushed completely automatically", - "website_url": "www.jfrog.com", - "issue_tracker_url": "https://github.com/bintray/bintray-client-java/issues", - "vcs_url": "https://github.com/bintray/bintray-client-java.git", - "licenses": ["MIT"], - "labels": ["cool", "awesome", "gorilla"], - "public_download_numbers": false, - "public_stats": false, - "attributes": [{"name": "att1", "values" : ["val1"], "type": "string"}, - {"name": "att2", "values" : [1, 2.2, 4], "type": "number"}, - {"name": "att5", "values" : ["2014-12-28T19:43:37+0100"], "type": "date"}] - }, - "version": { - "name": "$VERSION$", - "desc": "This is a version", - "released": "2015-01-04", - "vcs_tag": "0.5", - "attributes": [{"name": "VerAtt1", "values" : ["VerVal1"], "type": "string"}, - {"name": "VerAtt2", "values" : [1, 3.3, 5], "type": "number"}, - {"name": "VerAtt3", "values" : ["2015-01-01T19:43:37+0100"], "type": "date"}], - "gpgSign": false - }, - "publish": true -} \ No newline at end of file diff --git a/gradle-examples/3/gradle-example-bintray-info/bintray-info.json b/gradle-examples/3/gradle-example-bintray-info/bintray-info.json deleted file mode 100644 index a13f66949..000000000 --- a/gradle-examples/3/gradle-example-bintray-info/bintray-info.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "package": { - "name": "auto-upload", - "repo": "test", - "subject": "myBintrayUser", - "desc": "I was pushed completely automatically", - "website_url": "www.jfrog.com", - "issue_tracker_url": "https://github.com/bintray/bintray-client-java/issues", - "vcs_url": "https://github.com/bintray/bintray-client-java.git", - "licenses": ["MIT"], - "labels": ["cool", "awesome", "gorilla"], - "public_download_numbers": false, - "public_stats": false, - "attributes": [{"name": "att1", "values" : ["val1"], "type": "string"}, - {"name": "att2", "values" : [1, 2.2, 4], "type": "number"}, - {"name": "att5", "values" : ["2014-12-28T19:43:37+0100"], "type": "date"}] - }, - "version": { - "name": "1.0-SNAPSHOT", - "desc": "This is a version", - "released": "2015-01-04", - "vcs_tag": "0.5", - "attributes": [{"name": "VerAtt1", "values" : ["VerVal1"], "type": "string"}, - {"name": "VerAtt2", "values" : [1, 3.3, 5], "type": "number"}, - {"name": "VerAtt3", "values" : ["2015-01-01T19:43:37+0100"], "type": "date"}], - "gpgSign": false - }, - "publish": true -} \ No newline at end of file diff --git a/gradle-examples/3/gradle-example-bintray-info/build.gradle b/gradle-examples/3/gradle-example-bintray-info/build.gradle deleted file mode 100644 index 09c1761ba..000000000 --- a/gradle-examples/3/gradle-example-bintray-info/build.gradle +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright (C) 2013 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -buildscript { - repositories { - jcenter() - dependencies { - classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '3.2.0') - } - } -} - -group = 'org.jfrog.gradle-example-bintray-info' -version = currentVersion -def projectUrl = 'https://github.com/eyalbe4/project-examples' - -apply plugin: 'com.jfrog.artifactory-upload' -apply plugin: 'idea' -apply plugin: 'java' -apply plugin: 'maven' - -dependencies { - testCompile 'junit:junit:4.7' -} - -task sourceJar(type: Jar) { - from sourceSets.main.allSource - classifier = 'sources' -} - -task javadocJar(type: Jar, dependsOn: javadoc) { - classifier = 'javadoc' - from javadoc.destinationDir -} - -artifactoryPublish { - dependsOn sourceJar, javadocJar -} - -def bintrayInfoFile = file("$rootDir/bintray-info.json") -def pomFile = file("$rootDir/newpom.pom") - -artifacts { - archives sourceJar - archives javadocJar - artifacts { - archives file: bintrayInfoFile, name: 'bintray-info', type: 'json' - archives file: pomFile, name: project.name, type: 'pom' - } -} - -task createBintrayInfoFile(type:Exec) { - println 'Creating bintray-info.json.' - String fileContent = new File("$rootDir/bintray-info-template.json").getText('UTF-8') - fileContent = fileContent.replace('$VERSION$', currentVersion) - (new File("$rootDir/bintray-info.json")).write(fileContent) -} - -task writeNewPom(type:Exec) { - println "Creating pom file at $rootDir/newpom.xml" - pom { - project { - name 'project-name' - description 'description for project' - url projectUrl - inceptionYear '2015' - scm { - url projectUrl - connection projectUrl - developerConnection projectUrl - } - licenses { - license { - name 'The Apache Software License, Version 2.0' - url 'http://www.apache.org/licenses/LICENSE-2.0.txt' - distribution 'repo' - } - } - developers { - developer { - id 'JFrog' - name 'JFrogDev' - email 'jfrogdev@jfrog.com' - url projectUrl - roles{ - role 'Developer' - } - timezone '+2' - } - } - } - }.writeTo("$rootDir/newpom.pom") -} - -artifactory { - contextUrl = 'http://localhost:8081/artifactory' - publish { - repository { - repoKey = 'libs-snapshot-local' // The Artifactory repository key to publish to - username = "${artifactory_user}" // The publisher user name - password = "${artifactory_password}" // The publisher password - } - defaults { - // Reference to Gradle configurations defined in the build script. - // This is how we tell the Artifactory Plugin which artifacts should be - // published to Artifactory. - publishConfigs('archives') - publishPom = false - publishIvy = false - } - } - resolve { - repository { - repoKey = 'jcenter' // The Artifactory (preferably virtual) repository key to resolve from - username = "${artifactory_user}" // Optional resolver user name (leave out to use anonymous resolution) - password = "${artifactory_password}" // The resolver password - maven = true - } - } -} - -task wrapper(type: Wrapper) { - gradleVersion = '2.0' -} \ No newline at end of file diff --git a/gradle-examples/3/gradle-example-bintray-info/gradle/wrapper/gradle-wrapper.properties b/gradle-examples/3/gradle-example-bintray-info/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index b27f48d13..000000000 --- a/gradle-examples/3/gradle-example-bintray-info/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Mon Jul 20 09:52:53 IDT 2015 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.0-bin.zip diff --git a/gradle-examples/3/gradle-example-bintray-info/newpom.pom b/gradle-examples/3/gradle-example-bintray-info/newpom.pom deleted file mode 100644 index 6f02a5fb7..000000000 --- a/gradle-examples/3/gradle-example-bintray-info/newpom.pom +++ /dev/null @@ -1,44 +0,0 @@ - - - 4.0.0 - org.jfrog.gradle-example-bintray-info - gradle-example-bintray-info - 1.0-SNAPSHOT - project-name - description for project - https://github.com/eyalbe4/project-examples - 2015 - - - The Apache Software License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - JFrog - JFrogDev - jfrogdev@jfrog.com - https://github.com/eyalbe4/project-examples - - Developer - - +2 - - - - https://github.com/eyalbe4/project-examples - https://github.com/eyalbe4/project-examples - https://github.com/eyalbe4/project-examples - - - - junit - junit - 4.7 - test - - - diff --git a/gradle-examples/3/gradle-example-bintray-info/newpom.xml b/gradle-examples/3/gradle-example-bintray-info/newpom.xml deleted file mode 100644 index a03645e37..000000000 --- a/gradle-examples/3/gradle-example-bintray-info/newpom.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - 4.0.0 - org.jfrog.gradle-example-bintray-info - gradle-example-bintray-info - 1.0-SNAPSHOT - 2008 - - - The Apache Software License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - junit - junit - 4.7 - test - - - diff --git a/gradle-examples/3/gradle-example-bintray-info/src/main/java/org/gradle/api/PersonList.java b/gradle-examples/3/gradle-example-bintray-info/src/main/java/org/gradle/api/PersonList.java deleted file mode 100644 index 3163ac3e9..000000000 --- a/gradle-examples/3/gradle-example-bintray-info/src/main/java/org/gradle/api/PersonList.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.api; - -public class PersonList { - public void doSomethingWithImpl() { - System.out.println(this.getClass()); - } -} diff --git a/gradle-examples/3/gradle-example-ci-server-bintray-info/bintray-info-template.json b/gradle-examples/3/gradle-example-ci-server-bintray-info/bintray-info-template.json deleted file mode 100644 index 71a7ef289..000000000 --- a/gradle-examples/3/gradle-example-ci-server-bintray-info/bintray-info-template.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "package": { - "name": "auto-upload", - "repo": "maven", - "subject": "eyalbr", - "desc": "I was pushed completely automatically", - "website_url": "www.jfrog.com", - "issue_tracker_url": "https://github.com/bintray/bintray-client-java/issues", - "vcs_url": "https://github.com/bintray/bintray-client-java.git", - "licenses": ["MIT"], - "labels": ["cool", "awesome", "gorilla"], - "public_download_numbers": false, - "public_stats": false, - "attributes": [{"name": "att1", "values" : ["val1"], "type": "string"}, - {"name": "att2", "values" : [1, 2.2, 4], "type": "number"}, - {"name": "att5", "values" : ["2014-12-28T19:43:37+0100"], "type": "date"}] - }, - "version": { - "name": "$VERSION$", - "desc": "This is a version", - "released": "2015-01-04", - "vcs_tag": "0.5", - "attributes": [{"name": "VerAtt1", "values" : ["VerVal1"], "type": "string"}, - {"name": "VerAtt2", "values" : [1, 3.3, 5], "type": "number"}, - {"name": "VerAtt3", "values" : ["2015-01-01T19:43:37+0100"], "type": "date"}], - "gpgSign": true - }, - "publish": true -} \ No newline at end of file diff --git a/gradle-examples/3/gradle-example-ci-server-bintray-info/build.gradle b/gradle-examples/3/gradle-example-ci-server-bintray-info/build.gradle deleted file mode 100644 index acd138bac..000000000 --- a/gradle-examples/3/gradle-example-ci-server-bintray-info/build.gradle +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright (C) 2013 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -buildscript { - repositories { - jcenter() - } -} - -def projectUrl = 'https://github.com/eyalbe4/project-examples' -def bintrayInfoFile = file("$rootDir/bintray-info.json") - -allprojects { - apply plugin: 'java' - apply plugin: 'maven' - - group = 'org.jfrog.example.gradle' - version = currentVersion -} - -subprojects { - task sourceJar(type: Jar) { - from sourceSets.main.allSource - classifier = 'sources' - } - - task javadocJar(type: Jar, dependsOn: javadoc) { - classifier = 'javadoc' - from javadoc.destinationDir - } - - def pomFile = file("$rootDir/${project.name}/newpom.pom") - artifacts { - archives sourceJar - archives javadocJar - artifacts { - archives file: pomFile, name: project.name, type: 'pom' - if ('api'.equals(project.name)) { - archives file: bintrayInfoFile, name: 'bintray-info', type: 'json' - } - } - } - - task writeNewPom(type:Exec) { - println "Creating pom file at $rootDir/newpom.xml" - pom { - project { - name 'project-name' - description 'description for project' - url projectUrl - inceptionYear '2015' - scm { - url projectUrl - connection projectUrl - developerConnection projectUrl - } - licenses { - license { - name 'The Apache Software License, Version 2.0' - url 'http://www.apache.org/licenses/LICENSE-2.0.txt' - distribution 'repo' - } - } - developers { - developer { - id 'JFrog' - name 'JFrogDev' - email 'jfrogdev@jfrog.com' - url projectUrl - roles{ - role 'Developer' - } - timezone '+2' - } - } - } - }.writeTo("$rootDir/${project.name}/newpom.pom") - } -} - -task createBintrayInfoFile(type:Exec) { - println 'Creating bintray-info.json.' - String fileContent = new File("$rootDir/bintray-info-template.json").getText('UTF-8') - fileContent = fileContent.replace('$VERSION$', currentVersion) - (new File("$rootDir/bintray-info.json")).write(fileContent) -} - -// Setting this property to true will make the artifactoryPublish task -// skip this module (in our case, the root module): -artifactoryPublish.skip = true - -task wrapper(type: Wrapper) { - gradleVersion = '2.4' -} \ No newline at end of file diff --git a/gradle-examples/3/gradle-example-ci-server-bintray-info/gradle.properties b/gradle-examples/3/gradle-example-ci-server-bintray-info/gradle.properties deleted file mode 100644 index 192861298..000000000 --- a/gradle-examples/3/gradle-example-ci-server-bintray-info/gradle.properties +++ /dev/null @@ -1,3 +0,0 @@ -currentVersion=3.8 -artifactory_password=password -artifactory_user=admin diff --git a/gradle-examples/3/gradle-example-ci-server-bintray-info/gradle/wrapper/gradle-wrapper.properties b/gradle-examples/3/gradle-example-ci-server-bintray-info/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index b27f48d13..000000000 --- a/gradle-examples/3/gradle-example-ci-server-bintray-info/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Mon Jul 20 09:52:53 IDT 2015 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.0-bin.zip diff --git a/gradle-examples/3/gradle-example-ci-server-bintray-info/services/webservice/build.gradle b/gradle-examples/3/gradle-example-ci-server-bintray-info/services/webservice/build.gradle deleted file mode 100644 index 56d0ba800..000000000 --- a/gradle-examples/3/gradle-example-ci-server-bintray-info/services/webservice/build.gradle +++ /dev/null @@ -1,6 +0,0 @@ -dependencies { - compile project(':shared'), 'commons-collections:commons-collections:3.2@jar', 'commons-io:commons-io:1.2', 'commons-lang:commons-lang:2.4@jar' - compile group: 'org.apache.wicket', name: 'wicket', version: '1.3.7' - compile group: 'junit', name: 'junit', version: '4.11' - compile project(':api') -} diff --git a/gradle-examples/3/gradle-example-ci-server/build.gradle b/gradle-examples/3/gradle-example-ci-server/build.gradle deleted file mode 100644 index 8c492e57f..000000000 --- a/gradle-examples/3/gradle-example-ci-server/build.gradle +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2013 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -buildscript { - repositories { - jcenter() - } -} - -allprojects { - apply plugin: 'java' - apply plugin: 'maven' - - group = 'org.jfrog.example.gradle' - version = '1.0' - status = 'integration' -} - -// Setting this property to true will make the artifactoryPublish task -// skip this module (in our case, the root module): -artifactoryPublish.skip = true - -task wrapper(type: Wrapper) { - gradleVersion = '2.4' -} \ No newline at end of file diff --git a/gradle-examples/3/gradle-example-ci-server/gradle/wrapper/gradle-wrapper.properties b/gradle-examples/3/gradle-example-ci-server/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index b27f48d13..000000000 --- a/gradle-examples/3/gradle-example-ci-server/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Mon Jul 20 09:52:53 IDT 2015 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.0-bin.zip diff --git a/gradle-examples/3/gradle-example-ci-server/gradlew b/gradle-examples/3/gradle-example-ci-server/gradlew deleted file mode 100755 index 91a7e269e..000000000 --- a/gradle-examples/3/gradle-example-ci-server/gradlew +++ /dev/null @@ -1,164 +0,0 @@ -#!/usr/bin/env bash - -############################################################################## -## -## Gradle start up script for UN*X -## -############################################################################## - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS="" - -APP_NAME="Gradle" -APP_BASE_NAME=`basename "$0"` - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" - -warn ( ) { - echo "$*" -} - -die ( ) { - echo - echo "$*" - echo - exit 1 -} - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MINGW* ) - msys=true - ;; -esac - -# For Cygwin, ensure paths are in UNIX format before anything is touched. -if $cygwin ; then - [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` -fi - -# Attempt to set APP_HOME -# Resolve links: $0 may be a link -PRG="$0" -# Need this for relative symlinks. -while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`"/$link" - fi -done -SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >&- -APP_HOME="`pwd -P`" -cd "$SAVED" >&- - -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar - -# Determine the Java command to use to start the JVM. -if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -else - JAVACMD="java" - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi - -# Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" - fi -fi - -# For Darwin, add options to specify how the application appears in the dock -if $darwin; then - GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" -fi - -# For Cygwin, switch paths to Windows format before running java -if $cygwin ; then - APP_HOME=`cygpath --path --mixed "$APP_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi - # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" - fi - i=$((i+1)) - done - case $i in - (0) set -- ;; - (1) set -- "$args0" ;; - (2) set -- "$args0" "$args1" ;; - (3) set -- "$args0" "$args1" "$args2" ;; - (4) set -- "$args0" "$args1" "$args2" "$args3" ;; - (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; - esac -fi - -# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules -function splitJvmOpts() { - JVM_OPTS=("$@") -} -eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS -JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" - -exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" diff --git a/gradle-examples/3/gradle-example-minimal/build.gradle b/gradle-examples/3/gradle-example-minimal/build.gradle deleted file mode 100644 index a27866c3c..000000000 --- a/gradle-examples/3/gradle-example-minimal/build.gradle +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2013 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -buildscript { - repositories { - jcenter() - } - dependencies { - classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '3.2.0') - } -} - -version = currentVersion - -apply plugin: 'com.jfrog.artifactory' -apply plugin: 'java' -apply plugin: 'maven-publish' - -dependencies { - testCompile 'junit:junit:4.7' -} - -publishing { - publications { - mavenJava(MavenPublication) { - from components.java - } - } -} - -artifactory { - contextUrl = 'http://localhost:8081/artifactory' - publish { - repository { - repoKey = 'libs-snapshot-local' // The Artifactory repository key to publish to - username = "${artifactory_user}" // The publisher user name - password = "${artifactory_password}" // The publisher password - } - defaults { - // Reference to Gradle publications defined in the build script. - // This is how we tell the Artifactory Plugin which artifacts should be - // published to Artifactory. - publications('mavenJava') - publishArtifacts = true - // Properties to be attached to the published artifacts. - properties = ['qa.level': 'basic', 'dev.team' : 'core'] - // Publish generated POM files to Artifactory (true by default) - publishPom = true - } - } - resolve { - repoKey = 'jcenter' - } -} \ No newline at end of file diff --git a/gradle-examples/3/gradle-example-minimal/gradle/wrapper/gradle-wrapper.properties b/gradle-examples/3/gradle-example-minimal/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index 54969fabd..000000000 --- a/gradle-examples/3/gradle-example-minimal/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Mon Jul 20 09:53:20 IDT 2015 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.3-bin.zip diff --git a/gradle-examples/3/gradle-example-publish-bintray-info/bintray-info-template.json b/gradle-examples/3/gradle-example-publish-bintray-info/bintray-info-template.json deleted file mode 100644 index 032a9745f..000000000 --- a/gradle-examples/3/gradle-example-publish-bintray-info/bintray-info-template.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "package": { - "name": "auto-upload", - "repo": "maven", - "subject": "eyalbr", - "desc": "I was pushed completely automatically", - "website_url": "www.jfrog.com", - "issue_tracker_url": "https://github.com/bintray/bintray-client-java/issues", - "vcs_url": "https://github.com/bintray/bintray-client-java.git", - "licenses": ["MIT"], - "labels": ["cool", "awesome", "gorilla"], - "public_download_numbers": false, - "public_stats": false, - "attributes": [{"name": "att1", "values" : ["val1"], "type": "string"}, - {"name": "att2", "values" : [1, 2.2, 4], "type": "number"}, - {"name": "att5", "values" : ["2014-12-28T19:43:37+0100"], "type": "date"}] - }, - "version": { - "name": "$VERSION$", - "desc": "This is a version", - "released": "2015-01-04", - "vcs_tag": "0.5", - "attributes": [{"name": "VerAtt1", "values" : ["VerVal1"], "type": "string"}, - {"name": "VerAtt2", "values" : [1, 3.3, 5], "type": "number"}, - {"name": "VerAtt3", "values" : ["2015-01-01T19:43:37+0100"], "type": "date"}], - "gpgSign": false - }, - "publish": true -} \ No newline at end of file diff --git a/gradle-examples/3/gradle-example-publish-bintray-info/build.gradle b/gradle-examples/3/gradle-example-publish-bintray-info/build.gradle deleted file mode 100644 index 9f603d03a..000000000 --- a/gradle-examples/3/gradle-example-publish-bintray-info/build.gradle +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright (C) 2013 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -buildscript { - repositories { - jcenter() - } - dependencies { - classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '3.2.0') - } -} - -version = currentVersion -def projectUrl = 'https://github.com/eyalbe4/project-examples' -def bintrayInfoFileName = 'bintray-descriptor.bintray-info.json' - -apply plugin: 'com.jfrog.artifactory' -apply plugin: 'java' -apply plugin: 'maven-publish' - -dependencies { - testCompile 'junit:junit:4.7' -} - -task sourceJar(type: Jar) { - from sourceSets.main.allSource - classifier = 'sources' -} - -task javadocJar(type: Jar, dependsOn: javadoc) { - classifier = 'javadoc' - from javadoc.destinationDir -} - -publishing { - publications { - mavenJava(MavenPublication) { - from components.java - artifact sourceJar - artifact javadocJar - artifact("$rootDir/$bintrayInfoFileName") { - extension "bintray-info.json" - } - - pom.withXml { - asNode().children().last() + { - resolveStrategy = Closure.DELEGATE_FIRST - name 'project-name' - description 'description for project' - url projectUrl - scm { - url projectUrl - connection projectUrl - developerConnection projectUrl - } - licenses { - license { - name 'The Apache Software License, Version 2.0' - url 'http://www.apache.org/licenses/LICENSE-2.0.txt' - distribution 'repo' - } - } - developers { - developer { - id 'JFrog' - name 'JFrogDev' - email 'jfrogdev@jfrog.com' - } - } - } - } - } - } -} - -task createBintrayInfoFile(type:Exec) { - println 'Creating bintray-info.json' - String fileContent = new File("$rootDir/bintray-info-template.json").getText('UTF-8') - fileContent = fileContent.replace('$VERSION$', currentVersion) - (new File("$rootDir/$bintrayInfoFileName")).write(fileContent) -} - -artifactory { - contextUrl = 'http://localhost:8080/artifactory' - publish { - repository { - repoKey = 'libs-snapshot-local' // The Artifactory repository key to publish to - username = "${artifactory_user}" // The publisher user name - password = "${artifactory_password}" // The publisher password - } - defaults { - // Reference to Gradle publications defined in the build script. - // This is how we tell the Artifactory Plugin which artifacts should be - // published to Artifactory. - publications('mavenJava') - publishArtifacts = true - // Properties to be attached to the published artifacts. - properties = ['qa.level': 'basic', 'dev.team' : 'core'] - // Publish generated POM files to Artifactory (true by default) - publishPom = false - } - } - resolve { - repoKey = 'jcenter' - } -} \ No newline at end of file diff --git a/gradle-examples/3/gradle-example-publish-bintray-info/gradle.properties b/gradle-examples/3/gradle-example-publish-bintray-info/gradle.properties deleted file mode 100644 index 5055ad8d1..000000000 --- a/gradle-examples/3/gradle-example-publish-bintray-info/gradle.properties +++ /dev/null @@ -1,3 +0,0 @@ -currentVersion=3.5 -artifactory_user=admin -artifactory_password=password diff --git a/gradle-examples/3/gradle-example-publish-bintray-info/gradle/wrapper/gradle-wrapper.properties b/gradle-examples/3/gradle-example-publish-bintray-info/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index 54969fabd..000000000 --- a/gradle-examples/3/gradle-example-publish-bintray-info/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Mon Jul 20 09:53:20 IDT 2015 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.3-bin.zip diff --git a/gradle-examples/3/gradle-example-publish-bintray-info/src/main/java/org/gradle/api/PersonList.java b/gradle-examples/3/gradle-example-publish-bintray-info/src/main/java/org/gradle/api/PersonList.java deleted file mode 100644 index cac6e3ebb..000000000 --- a/gradle-examples/3/gradle-example-publish-bintray-info/src/main/java/org/gradle/api/PersonList.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.api; - -import java.util.Date; - -public class PersonList { - private Date date = null; - - public void doSomething() { - date = new Date(); - } -} diff --git a/gradle-examples/3/gradle-example-publish/api/src/main/java/org/gradle/api/package.html b/gradle-examples/3/gradle-example-publish/api/src/main/java/org/gradle/api/package.html deleted file mode 100644 index cea998a80..000000000 --- a/gradle-examples/3/gradle-example-publish/api/src/main/java/org/gradle/api/package.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -

These are the API classes

- diff --git a/gradle-examples/3/gradle-example-publish/build.gradle b/gradle-examples/3/gradle-example-publish/build.gradle deleted file mode 100644 index 203586a14..000000000 --- a/gradle-examples/3/gradle-example-publish/build.gradle +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Copyright (C) 2013 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -buildscript { - repositories { - jcenter() - } - dependencies { - classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '3.2.0') - } - configurations.classpath { - resolutionStrategy { - cacheDynamicVersionsFor 0, 'seconds' - cacheChangingModulesFor 0, 'seconds' - } - } -} - -def javaProjects() { - subprojects.findAll { new File(it.projectDir, 'src').directory } -} - -allprojects { - apply plugin: 'com.jfrog.artifactory' - group = 'org.jfrog.test.gradle.publish' - version = currentVersion - status = 'Integration' -} - -artifactoryPublish.skip = true - -project('services') { - artifactoryPublish.skip = true -} - -configure(javaProjects()) { - apply plugin: 'java' - apply plugin: 'maven-publish' - - dependencies { - testCompile 'junit:junit:4.7' - } - - publishing { - publications { - mavenJava(MavenPublication) { - from components.java - artifact(file("$rootDir/gradle.properties")) - } - } - } -} - -project('api') { - apply plugin: 'ivy-publish' - - publishing { - publications { - ivyJava(IvyPublication) { - from components.java - artifact(file("$rootDir/settings.gradle")) { - name "gradle-settings" - extension "txt" - type "text" - } - // The config below will add a extra attribute to the ivy.xml - // See http://ant.apache.org/ivy/history/latest-milestone/concept.html#extra - descriptor.withXml { - asNode().info[0].attributes().put('e:architecture', 'amd64') - } - } - } - } - - artifactoryPublish { - publications(publishing.publications.ivyJava) - properties { - simpleFile '**:**:**:*@*', simpleFile: 'only on settings file' - } - } -} - -artifactoryPublish.skip = true - -artifactory { - clientConfig.setIncludeEnvVars(true) - clientConfig.info.addEnvironmentProperty('test.adding.dynVar',new java.util.Date().toString()) - - contextUrl = 'http://localhost:8081/artifactory' - publish { - repository { - repoKey = 'libs-snapshot-local' // The Artifactory repository key to publish to - username = "${artifactory_user}" // The publisher user name - password = "${artifactory_password}" // The publisher password - // This is an optional section for configuring Ivy publication (when publishIvy = true). - ivy { - ivyLayout = '[organization]/[module]/ivy-[revision].xml' - artifactLayout = '[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]' - mavenCompatible = true //Convert any dots in an [organization] layout value to path separators, similar to Maven's groupId-to-path conversion. True if not specified - } - } - defaults { - // Reference to Gradle publications defined in the build script. - // This is how we tell the Artifactory Plugin which artifacts should be - // published to Artifactory. - publications('mavenJava') - publishArtifacts = true - // Properties to be attached to the published artifacts. - properties = ['qa.level': 'basic', 'dev.team' : 'core'] - publishPom = true // Publish generated POM files to Artifactory (true by default) - publishIvy = true // Publish generated Ivy descriptor files to Artifactory (true by default) - } - } - resolve { - repoKey = 'jcenter' - } -} diff --git a/gradle-examples/3/gradle-example-publish/gradle/wrapper/gradle-wrapper.jar b/gradle-examples/3/gradle-example-publish/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index 085a1cdc2..000000000 Binary files a/gradle-examples/3/gradle-example-publish/gradle/wrapper/gradle-wrapper.jar and /dev/null differ diff --git a/gradle-examples/3/gradle-example-publish/gradle/wrapper/gradle-wrapper.properties b/gradle-examples/3/gradle-example-publish/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index 93327b1d8..000000000 --- a/gradle-examples/3/gradle-example-publish/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Mon Jul 20 09:53:43 IDT 2015 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.3-bin.zip diff --git a/gradle-examples/3/gradle-example/api/src/main/java/org/gradle/api/package.html b/gradle-examples/3/gradle-example/api/src/main/java/org/gradle/api/package.html deleted file mode 100644 index cea998a80..000000000 --- a/gradle-examples/3/gradle-example/api/src/main/java/org/gradle/api/package.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -

These are the API classes

- diff --git a/gradle-examples/3/gradle-example/build.gradle b/gradle-examples/3/gradle-example/build.gradle deleted file mode 100644 index 735e4b523..000000000 --- a/gradle-examples/3/gradle-example/build.gradle +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright (C) 2013 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -buildscript { - repositories { - jcenter() - dependencies { - classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '3.2.0') - } - } -} - -allprojects { - apply plugin: 'com.jfrog.artifactory-upload' - apply plugin: 'idea' - configure(subprojects.findAll { new File(it.projectDir, 'src').directory }) { - apply plugin: 'java' - } - group = 'org.jfrog.example.gradle' - version = currentVersion - status = 'Integration' -} - -artifactoryPublish.skip = true - -subprojects { - apply plugin: 'maven' - - if (project.plugins.hasPlugin('java')) { - //manifest.mainAttributes(provider: 'gradle') - manifest { - attributes 'provider': 'gradle' - } - configurations { - published - } - dependencies { - testCompile 'junit:junit:4.7' - } - task sourceJar(type: Jar) { - from sourceSets.main.allSource - classifier = 'sources' - } - task javadocJar(type: Jar, dependsOn: javadoc) { - classifier = 'javadoc' - from javadoc.destinationDir - } - artifactoryPublish { - dependsOn sourceJar, javadocJar - } - artifacts { - published sourceJar - published javadocJar - } - } -} - -configurations { - published -} - -artifactory { - contextUrl = 'http://localhost:8081/artifactory' - publish { - repository { - repoKey = 'libs-snapshot-local' // The Artifactory repository key to publish to - username = "${artifactory_user}" // The publisher user name - password = "${artifactory_password}" // The publisher password - // This is an optional section for configuring Ivy publication (when publishIvy = true). - ivy { - ivyLayout = '[organization]/[module]/ivy-[revision].xml' - artifactLayout = '[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]' - mavenCompatible = true //Convert any dots in an [organization] layout value to path separators, similar to Maven's groupId-to-path conversion. True if not specified - } - } - defaults { - // Reference to Gradle configurations defined in the build script. - // This is how we tell the Artifactory Plugin which artifacts should be - // published to Artifactory. - publishConfigs('archives', 'published') - // Properties to be attached to the published artifacts. - properties = ['qa.level': 'basic', 'dev.team' : 'core'] - // You can also attach properties to published artifacts according to - // the following notation: - // - // The should be the name of the relevant Gradle Configuration or 'all' - // (for all configurations). - // Artifact spec has the following structure: - // group:artifact:version:classifier@ext - // Any element in the artifact spec notation can contain the * and ? wildcards. - // For example: - // org.acme:*:1.0.?_*:*@tgz - properties { - all '*:*:1.*:*@*', key1: 'val1', key2: 'val2' - all 'org.jfrog.*:*:1.*:*@jar*', key3: 'val3', key4: 'val4' - } - publishPom = true // Publish generated POM files to Artifactory (true by default) - publishIvy = true // Publish generated Ivy descriptor files to Artifactory (true by default) - } - } - resolve { - repository { - repoKey = 'jcenter' // The Artifactory (preferably virtual) repository key to resolve from - username = "${artifactory_user}" // Optional resolver user name (leave out to use anonymous resolution) - password = "${artifactory_password}" // The resolver password - maven = true - } - } -} - -task wrapper(type: Wrapper) { - gradleVersion = '2.0' -} \ No newline at end of file diff --git a/gradle-examples/3/gradle-example/gradle/wrapper/gradle-wrapper.jar b/gradle-examples/3/gradle-example/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index 085a1cdc2..000000000 Binary files a/gradle-examples/3/gradle-example/gradle/wrapper/gradle-wrapper.jar and /dev/null differ diff --git a/gradle-examples/3/gradle-example/gradle/wrapper/gradle-wrapper.properties b/gradle-examples/3/gradle-example/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index b27f48d13..000000000 --- a/gradle-examples/3/gradle-example/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Mon Jul 20 09:52:53 IDT 2015 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.0-bin.zip diff --git a/gradle-examples/3/gradle-example/gradlew b/gradle-examples/3/gradle-example/gradlew deleted file mode 100755 index 91a7e269e..000000000 --- a/gradle-examples/3/gradle-example/gradlew +++ /dev/null @@ -1,164 +0,0 @@ -#!/usr/bin/env bash - -############################################################################## -## -## Gradle start up script for UN*X -## -############################################################################## - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS="" - -APP_NAME="Gradle" -APP_BASE_NAME=`basename "$0"` - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" - -warn ( ) { - echo "$*" -} - -die ( ) { - echo - echo "$*" - echo - exit 1 -} - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MINGW* ) - msys=true - ;; -esac - -# For Cygwin, ensure paths are in UNIX format before anything is touched. -if $cygwin ; then - [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` -fi - -# Attempt to set APP_HOME -# Resolve links: $0 may be a link -PRG="$0" -# Need this for relative symlinks. -while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`"/$link" - fi -done -SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >&- -APP_HOME="`pwd -P`" -cd "$SAVED" >&- - -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar - -# Determine the Java command to use to start the JVM. -if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -else - JAVACMD="java" - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi - -# Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" - fi -fi - -# For Darwin, add options to specify how the application appears in the dock -if $darwin; then - GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" -fi - -# For Cygwin, switch paths to Windows format before running java -if $cygwin ; then - APP_HOME=`cygpath --path --mixed "$APP_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi - # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" - fi - i=$((i+1)) - done - case $i in - (0) set -- ;; - (1) set -- "$args0" ;; - (2) set -- "$args0" "$args1" ;; - (3) set -- "$args0" "$args1" "$args2" ;; - (4) set -- "$args0" "$args1" "$args2" "$args3" ;; - (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; - esac -fi - -# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules -function splitJvmOpts() { - JVM_OPTS=("$@") -} -eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS -JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" - -exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" diff --git a/gradle-examples/3/gradle-example/gradlew.bat b/gradle-examples/3/gradle-example/gradlew.bat deleted file mode 100644 index 8a0b282aa..000000000 --- a/gradle-examples/3/gradle-example/gradlew.bat +++ /dev/null @@ -1,90 +0,0 @@ -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS= - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto init - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto init - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:init -@rem Get command-line arguments, handling Windowz variants - -if not "%OS%" == "Windows_NT" goto win9xME_args -if "%@eval[2+2]" == "4" goto 4NT_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* -goto execute - -:4NT_args -@rem Get arguments from the 4NT Shell from JP Software -set CMD_LINE_ARGS=%$ - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega diff --git a/gradle-examples/3/gradle-jcenter-resolve/gradle/wrapper/gradle-wrapper.jar b/gradle-examples/3/gradle-jcenter-resolve/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index 085a1cdc2..000000000 Binary files a/gradle-examples/3/gradle-jcenter-resolve/gradle/wrapper/gradle-wrapper.jar and /dev/null differ diff --git a/gradle-examples/3/gradle-jcenter-resolve/gradle/wrapper/gradle-wrapper.properties b/gradle-examples/3/gradle-jcenter-resolve/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index 4ed6160e7..000000000 --- a/gradle-examples/3/gradle-jcenter-resolve/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Mon Jul 20 09:53:59 IDT 2015 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.3-bin.zip diff --git a/gradle-examples/4/README.md b/gradle-examples/4/README.md deleted file mode 100644 index 1c45efb0e..000000000 --- a/gradle-examples/4/README.md +++ /dev/null @@ -1,76 +0,0 @@ -## Gradle Artifactory Plugin Version 4 Examples -Sample projects that use the Gradle Artifactory Plugin. -The plugin adds the "artifactoryPublish" task. -The Plugin documenation is available at: -https://www.jfrog.com/confluence/display/RTF/Gradle+Artifactory+Plugin - -#### Running the examples -```console -> gradle artifactoryPublish - -or with the gradle wrapper in Unix - -> ./gradlew artifactoryPublish - -and the gradle wrapper in Windows - -> gradlew.bat artifactoryPublish -``` - -### gradle-example-minimal -A minimal sample project that uses the Gradle Artifactory Plugin to resolve and publish artifacts to Artifactory. - -### gradle-example-ci-server -Gradle sample project to be used with one of the Artifactory CI Server Plugins (Jenkins, TeamCity or Bamboo). -The Artifactory configuration in this case (repositories, Artifactory credentials, etc.) -is done from the CI Server UI. -You can still add the artifactory closure to the build script and have default values configured there, -but the values configured in the CI Server override them. -In this example, the only Artifactory property configured is "artifactoryPublish.skip = true". - -#### Important notes for using this example from a CI Server: - -* Make sure to have the "Project uses the Artifactory Gradle Plugin" check box in the CI Server UI unchecked, so that the CI Server Plugin automatically applies the Gradle Artifactory Plugin to your -build script. -* In order to publish the build artifacts to Artifactory, the published arrtifacts are added to the archives Gradle configuration. - -### gradle-example-ci-server-bintray-info -Same as *gradle-example-ci-server*, but also creates a bintray-info descriptor file and adds to the build artifacts -to be deployed to Artifactory, so that the build artifacts can be later published to Bintray from Artifactory. - -### gradle-example -Sample project that uses the Gradle Artifactory Plugin with Gradle Configurations. - -### gradle-example-publish -Sample project that uses the Gradle Artifactory Plugin with Gradle Publications. - -### gradle-android-example -Sample project that uses the Gradle Artifactory Plugin to deploy Android application(apk) and library(aar) to Artifactory. - -Compatible with Android gradle plugin version 3.0.x - -### gradle-example-bintray-info -Sample project that uses the Gradle Artifactory Plugin with Gradle Configurations. -The project creates a bintray-info descriptor file and adds to the build artifacts to be deployed to Artifactory, -so that the build artifacts can be later published to Bintray from Artifactory. - -### gradle-example-publish-bintray-info -Sample project that uses the Gradle Artifactory Plugin with Gradle Publications. -The project creates a bintray-info descriptor file and adds to the build artifacts to be deployed to Artifactory, -so that the build artifacts can be later published to Bintray from Artifactory. - -### gradle-jcenter-resolve -Resolves a dependency from jcenter. - -### gradle-cache-example -Simple copy of the `gradle-example` project with modified configuration to use Artifactory as an external -Gradle Build Cache. This feature was introduced with Gradle 3.5. -Please see https://docs.gradle.org/3.5/userguide/build_cache.html for more details. -To make it work, you'll need to create a generic repository in Artifactory called `gradle-cache-example`. -If you need to tweak the repo name or credentials, you can change them in `settings.gradle`. -The first time you should build this project with: - `./gradlew clean build --info -Pgradle.cache.push=true` -After downloading the correct Gradle version, it will take about about 11s and push the cache to Artifactory. During -tests execution, you should see the message `Executing heavy fake test`. -Then if you try it from a different environment, or simply rebuild with `./gradlew clean build`, -it will skip the test task, fetch the cache from Artifactory instead and should take about 1s. \ No newline at end of file diff --git a/gradle-examples/4/gradle-android-example/gradlew.bat b/gradle-examples/4/gradle-android-example/gradlew.bat deleted file mode 100644 index 8a0b282aa..000000000 --- a/gradle-examples/4/gradle-android-example/gradlew.bat +++ /dev/null @@ -1,90 +0,0 @@ -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS= - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto init - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto init - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:init -@rem Get command-line arguments, handling Windowz variants - -if not "%OS%" == "Windows_NT" goto win9xME_args -if "%@eval[2+2]" == "4" goto 4NT_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* -goto execute - -:4NT_args -@rem Get arguments from the 4NT Shell from JP Software -set CMD_LINE_ARGS=%$ - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega diff --git a/gradle-examples/4/gradle-cache-example/api/build.gradle b/gradle-examples/4/gradle-cache-example/api/build.gradle deleted file mode 100644 index 5c001ccf3..000000000 --- a/gradle-examples/4/gradle-cache-example/api/build.gradle +++ /dev/null @@ -1,15 +0,0 @@ -configurations { - spi -} - -dependencies { - compile project(':shared') - compile module("commons-lang:commons-lang:2.4") { - dependency("commons-io:commons-io:1.2") - } - compile group: 'org.apache.wicket', name: 'wicket', version: '1.3.7' - -} - -// Just a smoke test that using this option does not lead to any exception -compileJava.options.compilerArgs = ['-Xlint:unchecked'] diff --git a/gradle-examples/4/gradle-cache-example/api/src/main/java/org/gradle/apiImpl/Impl.java b/gradle-examples/4/gradle-cache-example/api/src/main/java/org/gradle/apiImpl/Impl.java deleted file mode 100644 index 76cf0cc22..000000000 --- a/gradle-examples/4/gradle-cache-example/api/src/main/java/org/gradle/apiImpl/Impl.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.apiImpl; - - -public class Impl { - - public void implMethod() { - double a = 4.0 * 4; - } - -} diff --git a/gradle-examples/4/gradle-cache-example/gradlew b/gradle-examples/4/gradle-cache-example/gradlew deleted file mode 100755 index 91a7e269e..000000000 --- a/gradle-examples/4/gradle-cache-example/gradlew +++ /dev/null @@ -1,164 +0,0 @@ -#!/usr/bin/env bash - -############################################################################## -## -## Gradle start up script for UN*X -## -############################################################################## - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS="" - -APP_NAME="Gradle" -APP_BASE_NAME=`basename "$0"` - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" - -warn ( ) { - echo "$*" -} - -die ( ) { - echo - echo "$*" - echo - exit 1 -} - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MINGW* ) - msys=true - ;; -esac - -# For Cygwin, ensure paths are in UNIX format before anything is touched. -if $cygwin ; then - [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` -fi - -# Attempt to set APP_HOME -# Resolve links: $0 may be a link -PRG="$0" -# Need this for relative symlinks. -while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`"/$link" - fi -done -SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >&- -APP_HOME="`pwd -P`" -cd "$SAVED" >&- - -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar - -# Determine the Java command to use to start the JVM. -if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -else - JAVACMD="java" - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi - -# Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" - fi -fi - -# For Darwin, add options to specify how the application appears in the dock -if $darwin; then - GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" -fi - -# For Cygwin, switch paths to Windows format before running java -if $cygwin ; then - APP_HOME=`cygpath --path --mixed "$APP_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi - # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" - fi - i=$((i+1)) - done - case $i in - (0) set -- ;; - (1) set -- "$args0" ;; - (2) set -- "$args0" "$args1" ;; - (3) set -- "$args0" "$args1" "$args2" ;; - (4) set -- "$args0" "$args1" "$args2" "$args3" ;; - (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; - esac -fi - -# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules -function splitJvmOpts() { - JVM_OPTS=("$@") -} -eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS -JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" - -exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" diff --git a/gradle-examples/4/gradle-cache-example/gradlew.bat b/gradle-examples/4/gradle-cache-example/gradlew.bat deleted file mode 100644 index 8a0b282aa..000000000 --- a/gradle-examples/4/gradle-cache-example/gradlew.bat +++ /dev/null @@ -1,90 +0,0 @@ -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS= - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto init - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto init - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:init -@rem Get command-line arguments, handling Windowz variants - -if not "%OS%" == "Windows_NT" goto win9xME_args -if "%@eval[2+2]" == "4" goto 4NT_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* -goto execute - -:4NT_args -@rem Get arguments from the 4NT Shell from JP Software -set CMD_LINE_ARGS=%$ - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega diff --git a/gradle-examples/4/gradle-cache-example/init.gradle b/gradle-examples/4/gradle-cache-example/init.gradle deleted file mode 100644 index e0a1fad7e..000000000 --- a/gradle-examples/4/gradle-cache-example/init.gradle +++ /dev/null @@ -1,17 +0,0 @@ -gradle.projectsLoaded { - rootProject.allprojects { - buildscript { - repositories { - maven{ - //url "http://repo.jfrog.org/artifactory/gradle" - //url "http://localhost:8081/artifactory/gradle" - url "http://localhost:8080/artifactory/gradle-snapshot-local" - } - //mavenLocal() - dependencies { - classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '2.2.4') - } - } - } - } -} diff --git a/gradle-examples/4/gradle-example-bintray-info/bintray-info-template.json b/gradle-examples/4/gradle-example-bintray-info/bintray-info-template.json deleted file mode 100644 index 22e5f59f3..000000000 --- a/gradle-examples/4/gradle-example-bintray-info/bintray-info-template.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "package": { - "name": "auto-upload", - "repo": "test", - "subject": "myBintrayUser", - "desc": "I was pushed completely automatically", - "website_url": "www.jfrog.com", - "issue_tracker_url": "https://github.com/bintray/bintray-client-java/issues", - "vcs_url": "https://github.com/bintray/bintray-client-java.git", - "licenses": ["MIT"], - "labels": ["cool", "awesome", "gorilla"], - "public_download_numbers": false, - "public_stats": false, - "attributes": [{"name": "att1", "values" : ["val1"], "type": "string"}, - {"name": "att2", "values" : [1, 2.2, 4], "type": "number"}, - {"name": "att5", "values" : ["2014-12-28T19:43:37+0100"], "type": "date"}] - }, - "version": { - "name": "$VERSION$", - "desc": "This is a version", - "released": "2015-01-04", - "vcs_tag": "0.5", - "attributes": [{"name": "VerAtt1", "values" : ["VerVal1"], "type": "string"}, - {"name": "VerAtt2", "values" : [1, 3.3, 5], "type": "number"}, - {"name": "VerAtt3", "values" : ["2015-01-01T19:43:37+0100"], "type": "date"}], - "gpgSign": false - }, - "publish": true -} \ No newline at end of file diff --git a/gradle-examples/4/gradle-example-bintray-info/bintray-info.json b/gradle-examples/4/gradle-example-bintray-info/bintray-info.json deleted file mode 100644 index a13f66949..000000000 --- a/gradle-examples/4/gradle-example-bintray-info/bintray-info.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "package": { - "name": "auto-upload", - "repo": "test", - "subject": "myBintrayUser", - "desc": "I was pushed completely automatically", - "website_url": "www.jfrog.com", - "issue_tracker_url": "https://github.com/bintray/bintray-client-java/issues", - "vcs_url": "https://github.com/bintray/bintray-client-java.git", - "licenses": ["MIT"], - "labels": ["cool", "awesome", "gorilla"], - "public_download_numbers": false, - "public_stats": false, - "attributes": [{"name": "att1", "values" : ["val1"], "type": "string"}, - {"name": "att2", "values" : [1, 2.2, 4], "type": "number"}, - {"name": "att5", "values" : ["2014-12-28T19:43:37+0100"], "type": "date"}] - }, - "version": { - "name": "1.0-SNAPSHOT", - "desc": "This is a version", - "released": "2015-01-04", - "vcs_tag": "0.5", - "attributes": [{"name": "VerAtt1", "values" : ["VerVal1"], "type": "string"}, - {"name": "VerAtt2", "values" : [1, 3.3, 5], "type": "number"}, - {"name": "VerAtt3", "values" : ["2015-01-01T19:43:37+0100"], "type": "date"}], - "gpgSign": false - }, - "publish": true -} \ No newline at end of file diff --git a/gradle-examples/4/gradle-example-bintray-info/build.gradle b/gradle-examples/4/gradle-example-bintray-info/build.gradle deleted file mode 100644 index fb16d5e90..000000000 --- a/gradle-examples/4/gradle-example-bintray-info/build.gradle +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright (C) 2013 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -buildscript { - repositories { - jcenter() - dependencies { - classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '4.+') - } - } -} - -group = 'org.jfrog.gradle-example-bintray-info' -version = currentVersion -def projectUrl = 'https://github.com/eyalbe4/project-examples' - -apply plugin: 'com.jfrog.artifactory' -apply plugin: 'idea' -apply plugin: 'java' -apply plugin: 'maven' - -dependencies { - testCompile 'junit:junit:4.7' -} - -task sourceJar(type: Jar) { - from sourceSets.main.allSource - classifier = 'sources' -} - -task javadocJar(type: Jar, dependsOn: javadoc) { - classifier = 'javadoc' - from javadoc.destinationDir -} - -artifactoryPublish { - dependsOn sourceJar, javadocJar -} - -def bintrayInfoFile = file("$rootDir/bintray-info.json") -def pomFile = file("$rootDir/newpom.pom") - -artifacts { - archives sourceJar - archives javadocJar - artifacts { - archives file: bintrayInfoFile, name: 'bintray-info', type: 'json' - archives file: pomFile, name: project.name, type: 'pom' - } -} - -task createBintrayInfoFile(type:Exec) { - println 'Creating bintray-info.json.' - String fileContent = new File("$rootDir/bintray-info-template.json").getText('UTF-8') - fileContent = fileContent.replace('$VERSION$', currentVersion) - (new File("$rootDir/bintray-info.json")).write(fileContent) -} - -task writeNewPom(type:Exec) { - println "Creating pom file at $rootDir/newpom.xml" - pom { - project { - name 'project-name' - description 'description for project' - url projectUrl - inceptionYear '2015' - scm { - url projectUrl - connection projectUrl - developerConnection projectUrl - } - licenses { - license { - name 'The Apache Software License, Version 2.0' - url 'http://www.apache.org/licenses/LICENSE-2.0.txt' - distribution 'repo' - } - } - developers { - developer { - id 'JFrog' - name 'JFrogDev' - email 'jfrogdev@jfrog.com' - url projectUrl - roles{ - role 'Developer' - } - timezone '+2' - } - } - } - }.writeTo("$rootDir/newpom.pom") -} - -artifactory { - contextUrl = 'http://localhost:8081/artifactory' - publish { - repository { - repoKey = 'libs-snapshot-local' // The Artifactory repository key to publish to - username = "${artifactory_user}" // The publisher user name - password = "${artifactory_password}" // The publisher password - } - defaults { - // Reference to Gradle configurations defined in the build script. - // This is how we tell the Artifactory Plugin which artifacts should be - // published to Artifactory. - publishConfigs('archives') - publishPom = false - publishIvy = false - } - } - resolve { - repository { - repoKey = 'jcenter' // The Artifactory (preferably virtual) repository key to resolve from - username = "${artifactory_user}" // Optional resolver user name (leave out to use anonymous resolution) - password = "${artifactory_password}" // The resolver password - maven = true - } - } -} - -task wrapper(type: Wrapper) { - gradleVersion = '4.3.1' -} \ No newline at end of file diff --git a/gradle-examples/4/gradle-example-bintray-info/gradle.properties b/gradle-examples/4/gradle-example-bintray-info/gradle.properties deleted file mode 100644 index 266947aa2..000000000 --- a/gradle-examples/4/gradle-example-bintray-info/gradle.properties +++ /dev/null @@ -1,3 +0,0 @@ -currentVersion=1.0-SNAPSHOT -artifactory_user=admin -artifactory_password=password diff --git a/gradle-examples/4/gradle-example-bintray-info/gradle/wrapper/gradle-wrapper.jar b/gradle-examples/4/gradle-example-bintray-info/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index 085a1cdc2..000000000 Binary files a/gradle-examples/4/gradle-example-bintray-info/gradle/wrapper/gradle-wrapper.jar and /dev/null differ diff --git a/gradle-examples/4/gradle-example-bintray-info/gradlew b/gradle-examples/4/gradle-example-bintray-info/gradlew deleted file mode 100755 index 91a7e269e..000000000 --- a/gradle-examples/4/gradle-example-bintray-info/gradlew +++ /dev/null @@ -1,164 +0,0 @@ -#!/usr/bin/env bash - -############################################################################## -## -## Gradle start up script for UN*X -## -############################################################################## - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS="" - -APP_NAME="Gradle" -APP_BASE_NAME=`basename "$0"` - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" - -warn ( ) { - echo "$*" -} - -die ( ) { - echo - echo "$*" - echo - exit 1 -} - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MINGW* ) - msys=true - ;; -esac - -# For Cygwin, ensure paths are in UNIX format before anything is touched. -if $cygwin ; then - [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` -fi - -# Attempt to set APP_HOME -# Resolve links: $0 may be a link -PRG="$0" -# Need this for relative symlinks. -while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`"/$link" - fi -done -SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >&- -APP_HOME="`pwd -P`" -cd "$SAVED" >&- - -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar - -# Determine the Java command to use to start the JVM. -if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -else - JAVACMD="java" - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi - -# Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" - fi -fi - -# For Darwin, add options to specify how the application appears in the dock -if $darwin; then - GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" -fi - -# For Cygwin, switch paths to Windows format before running java -if $cygwin ; then - APP_HOME=`cygpath --path --mixed "$APP_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi - # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" - fi - i=$((i+1)) - done - case $i in - (0) set -- ;; - (1) set -- "$args0" ;; - (2) set -- "$args0" "$args1" ;; - (3) set -- "$args0" "$args1" "$args2" ;; - (4) set -- "$args0" "$args1" "$args2" "$args3" ;; - (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; - esac -fi - -# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules -function splitJvmOpts() { - JVM_OPTS=("$@") -} -eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS -JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" - -exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" diff --git a/gradle-examples/4/gradle-example-bintray-info/gradlew.bat b/gradle-examples/4/gradle-example-bintray-info/gradlew.bat deleted file mode 100644 index 8a0b282aa..000000000 --- a/gradle-examples/4/gradle-example-bintray-info/gradlew.bat +++ /dev/null @@ -1,90 +0,0 @@ -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS= - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto init - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto init - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:init -@rem Get command-line arguments, handling Windowz variants - -if not "%OS%" == "Windows_NT" goto win9xME_args -if "%@eval[2+2]" == "4" goto 4NT_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* -goto execute - -:4NT_args -@rem Get arguments from the 4NT Shell from JP Software -set CMD_LINE_ARGS=%$ - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega diff --git a/gradle-examples/4/gradle-example-bintray-info/init.gradle b/gradle-examples/4/gradle-example-bintray-info/init.gradle deleted file mode 100644 index e0a1fad7e..000000000 --- a/gradle-examples/4/gradle-example-bintray-info/init.gradle +++ /dev/null @@ -1,17 +0,0 @@ -gradle.projectsLoaded { - rootProject.allprojects { - buildscript { - repositories { - maven{ - //url "http://repo.jfrog.org/artifactory/gradle" - //url "http://localhost:8081/artifactory/gradle" - url "http://localhost:8080/artifactory/gradle-snapshot-local" - } - //mavenLocal() - dependencies { - classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '2.2.4') - } - } - } - } -} diff --git a/gradle-examples/4/gradle-example-bintray-info/newpom.pom b/gradle-examples/4/gradle-example-bintray-info/newpom.pom deleted file mode 100644 index 6f02a5fb7..000000000 --- a/gradle-examples/4/gradle-example-bintray-info/newpom.pom +++ /dev/null @@ -1,44 +0,0 @@ - - - 4.0.0 - org.jfrog.gradle-example-bintray-info - gradle-example-bintray-info - 1.0-SNAPSHOT - project-name - description for project - https://github.com/eyalbe4/project-examples - 2015 - - - The Apache Software License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - JFrog - JFrogDev - jfrogdev@jfrog.com - https://github.com/eyalbe4/project-examples - - Developer - - +2 - - - - https://github.com/eyalbe4/project-examples - https://github.com/eyalbe4/project-examples - https://github.com/eyalbe4/project-examples - - - - junit - junit - 4.7 - test - - - diff --git a/gradle-examples/4/gradle-example-bintray-info/newpom.xml b/gradle-examples/4/gradle-example-bintray-info/newpom.xml deleted file mode 100644 index a03645e37..000000000 --- a/gradle-examples/4/gradle-example-bintray-info/newpom.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - 4.0.0 - org.jfrog.gradle-example-bintray-info - gradle-example-bintray-info - 1.0-SNAPSHOT - 2008 - - - The Apache Software License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - junit - junit - 4.7 - test - - - diff --git a/gradle-examples/4/gradle-example-bintray-info/src/main/java/org/gradle/api/PersonList.java b/gradle-examples/4/gradle-example-bintray-info/src/main/java/org/gradle/api/PersonList.java deleted file mode 100644 index 3163ac3e9..000000000 --- a/gradle-examples/4/gradle-example-bintray-info/src/main/java/org/gradle/api/PersonList.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.api; - -public class PersonList { - public void doSomethingWithImpl() { - System.out.println(this.getClass()); - } -} diff --git a/gradle-examples/4/gradle-example-bintray-info/src/main/java/org/gradle/api/package.html b/gradle-examples/4/gradle-example-bintray-info/src/main/java/org/gradle/api/package.html deleted file mode 100644 index cea998a80..000000000 --- a/gradle-examples/4/gradle-example-bintray-info/src/main/java/org/gradle/api/package.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -

These are the API classes

- diff --git a/gradle-examples/4/gradle-example-bintray-info/src/main/java/org/gradle/apiImpl/Impl.java b/gradle-examples/4/gradle-example-bintray-info/src/main/java/org/gradle/apiImpl/Impl.java deleted file mode 100644 index 76cf0cc22..000000000 --- a/gradle-examples/4/gradle-example-bintray-info/src/main/java/org/gradle/apiImpl/Impl.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.apiImpl; - - -public class Impl { - - public void implMethod() { - double a = 4.0 * 4; - } - -} diff --git a/gradle-examples/4/gradle-example-ci-server-bintray-info/api/build.gradle b/gradle-examples/4/gradle-example-ci-server-bintray-info/api/build.gradle deleted file mode 100644 index 5c001ccf3..000000000 --- a/gradle-examples/4/gradle-example-ci-server-bintray-info/api/build.gradle +++ /dev/null @@ -1,15 +0,0 @@ -configurations { - spi -} - -dependencies { - compile project(':shared') - compile module("commons-lang:commons-lang:2.4") { - dependency("commons-io:commons-io:1.2") - } - compile group: 'org.apache.wicket', name: 'wicket', version: '1.3.7' - -} - -// Just a smoke test that using this option does not lead to any exception -compileJava.options.compilerArgs = ['-Xlint:unchecked'] diff --git a/gradle-examples/4/gradle-example-ci-server-bintray-info/api/src/main/java/org/gradle/api/PersonList.java b/gradle-examples/4/gradle-example-ci-server-bintray-info/api/src/main/java/org/gradle/api/PersonList.java deleted file mode 100644 index 1d80a16b3..000000000 --- a/gradle-examples/4/gradle-example-ci-server-bintray-info/api/src/main/java/org/gradle/api/PersonList.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.api; - -import org.gradle.apiImpl.Impl; -import org.gradle.shared.Person; - -import java.util.ArrayList; - - -public class PersonList { - private ArrayList persons = new ArrayList(); - - public void doSomethingWithImpl() { - org.apache.commons.lang.builder.ToStringBuilder stringBuilder; - try { - Class.forName("org.apache.commons.io.FileUtils"); - } catch (ClassNotFoundException e) { - throw new RuntimeException(e); - } - new Impl().implMethod(); - } - -} diff --git a/gradle-examples/4/gradle-example-ci-server-bintray-info/api/src/main/java/org/gradle/api/package.html b/gradle-examples/4/gradle-example-ci-server-bintray-info/api/src/main/java/org/gradle/api/package.html deleted file mode 100644 index cea998a80..000000000 --- a/gradle-examples/4/gradle-example-ci-server-bintray-info/api/src/main/java/org/gradle/api/package.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -

These are the API classes

- diff --git a/gradle-examples/4/gradle-example-ci-server-bintray-info/api/src/main/java/org/gradle/apiImpl/Impl.java b/gradle-examples/4/gradle-example-ci-server-bintray-info/api/src/main/java/org/gradle/apiImpl/Impl.java deleted file mode 100644 index 76cf0cc22..000000000 --- a/gradle-examples/4/gradle-example-ci-server-bintray-info/api/src/main/java/org/gradle/apiImpl/Impl.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.apiImpl; - - -public class Impl { - - public void implMethod() { - double a = 4.0 * 4; - } - -} diff --git a/gradle-examples/4/gradle-example-ci-server-bintray-info/bintray-info-template.json b/gradle-examples/4/gradle-example-ci-server-bintray-info/bintray-info-template.json deleted file mode 100644 index 71a7ef289..000000000 --- a/gradle-examples/4/gradle-example-ci-server-bintray-info/bintray-info-template.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "package": { - "name": "auto-upload", - "repo": "maven", - "subject": "eyalbr", - "desc": "I was pushed completely automatically", - "website_url": "www.jfrog.com", - "issue_tracker_url": "https://github.com/bintray/bintray-client-java/issues", - "vcs_url": "https://github.com/bintray/bintray-client-java.git", - "licenses": ["MIT"], - "labels": ["cool", "awesome", "gorilla"], - "public_download_numbers": false, - "public_stats": false, - "attributes": [{"name": "att1", "values" : ["val1"], "type": "string"}, - {"name": "att2", "values" : [1, 2.2, 4], "type": "number"}, - {"name": "att5", "values" : ["2014-12-28T19:43:37+0100"], "type": "date"}] - }, - "version": { - "name": "$VERSION$", - "desc": "This is a version", - "released": "2015-01-04", - "vcs_tag": "0.5", - "attributes": [{"name": "VerAtt1", "values" : ["VerVal1"], "type": "string"}, - {"name": "VerAtt2", "values" : [1, 3.3, 5], "type": "number"}, - {"name": "VerAtt3", "values" : ["2015-01-01T19:43:37+0100"], "type": "date"}], - "gpgSign": true - }, - "publish": true -} \ No newline at end of file diff --git a/gradle-examples/4/gradle-example-ci-server-bintray-info/build.gradle b/gradle-examples/4/gradle-example-ci-server-bintray-info/build.gradle deleted file mode 100644 index bdb278112..000000000 --- a/gradle-examples/4/gradle-example-ci-server-bintray-info/build.gradle +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright (C) 2013 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -buildscript { - repositories { - jcenter() - } -} - -def projectUrl = 'https://github.com/eyalbe4/project-examples' -def bintrayInfoFile = file("$rootDir/bintray-info.json") - -allprojects { - apply plugin: 'java' - apply plugin: 'maven' - - group = 'org.jfrog.example.gradle' - version = currentVersion -} - -subprojects { - task sourceJar(type: Jar) { - from sourceSets.main.allSource - classifier = 'sources' - } - - task javadocJar(type: Jar, dependsOn: javadoc) { - classifier = 'javadoc' - from javadoc.destinationDir - } - - def pomFile = file("$rootDir/${project.name}/newpom.pom") - artifacts { - archives sourceJar - archives javadocJar - artifacts { - archives file: pomFile, name: project.name, type: 'pom' - if ('api'.equals(project.name)) { - archives file: bintrayInfoFile, name: 'bintray-info', type: 'json' - } - } - } - - task writeNewPom(type:Exec) { - println "Creating pom file at $rootDir/newpom.xml" - pom { - project { - name 'project-name' - description 'description for project' - url projectUrl - inceptionYear '2015' - scm { - url projectUrl - connection projectUrl - developerConnection projectUrl - } - licenses { - license { - name 'The Apache Software License, Version 2.0' - url 'http://www.apache.org/licenses/LICENSE-2.0.txt' - distribution 'repo' - } - } - developers { - developer { - id 'JFrog' - name 'JFrogDev' - email 'jfrogdev@jfrog.com' - url projectUrl - roles{ - role 'Developer' - } - timezone '+2' - } - } - } - }.writeTo("$rootDir/${project.name}/newpom.pom") - } -} - -task createBintrayInfoFile(type:Exec) { - println 'Creating bintray-info.json.' - String fileContent = new File("$rootDir/bintray-info-template.json").getText('UTF-8') - fileContent = fileContent.replace('$VERSION$', currentVersion) - (new File("$rootDir/bintray-info.json")).write(fileContent) -} - -// Setting this property to true will make the artifactoryPublish task -// skip this module (in our case, the root module): -artifactoryPublish.skip = true - -task wrapper(type: Wrapper) { - gradleVersion = '4.3.1' -} \ No newline at end of file diff --git a/gradle-examples/4/gradle-example-ci-server-bintray-info/gradle.properties b/gradle-examples/4/gradle-example-ci-server-bintray-info/gradle.properties deleted file mode 100644 index 192861298..000000000 --- a/gradle-examples/4/gradle-example-ci-server-bintray-info/gradle.properties +++ /dev/null @@ -1,3 +0,0 @@ -currentVersion=3.8 -artifactory_password=password -artifactory_user=admin diff --git a/gradle-examples/4/gradle-example-ci-server-bintray-info/gradle/wrapper/gradle-wrapper.jar b/gradle-examples/4/gradle-example-ci-server-bintray-info/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index 085a1cdc2..000000000 Binary files a/gradle-examples/4/gradle-example-ci-server-bintray-info/gradle/wrapper/gradle-wrapper.jar and /dev/null differ diff --git a/gradle-examples/4/gradle-example-ci-server-bintray-info/gradlew b/gradle-examples/4/gradle-example-ci-server-bintray-info/gradlew deleted file mode 100755 index 91a7e269e..000000000 --- a/gradle-examples/4/gradle-example-ci-server-bintray-info/gradlew +++ /dev/null @@ -1,164 +0,0 @@ -#!/usr/bin/env bash - -############################################################################## -## -## Gradle start up script for UN*X -## -############################################################################## - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS="" - -APP_NAME="Gradle" -APP_BASE_NAME=`basename "$0"` - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" - -warn ( ) { - echo "$*" -} - -die ( ) { - echo - echo "$*" - echo - exit 1 -} - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MINGW* ) - msys=true - ;; -esac - -# For Cygwin, ensure paths are in UNIX format before anything is touched. -if $cygwin ; then - [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` -fi - -# Attempt to set APP_HOME -# Resolve links: $0 may be a link -PRG="$0" -# Need this for relative symlinks. -while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`"/$link" - fi -done -SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >&- -APP_HOME="`pwd -P`" -cd "$SAVED" >&- - -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar - -# Determine the Java command to use to start the JVM. -if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -else - JAVACMD="java" - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi - -# Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" - fi -fi - -# For Darwin, add options to specify how the application appears in the dock -if $darwin; then - GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" -fi - -# For Cygwin, switch paths to Windows format before running java -if $cygwin ; then - APP_HOME=`cygpath --path --mixed "$APP_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi - # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" - fi - i=$((i+1)) - done - case $i in - (0) set -- ;; - (1) set -- "$args0" ;; - (2) set -- "$args0" "$args1" ;; - (3) set -- "$args0" "$args1" "$args2" ;; - (4) set -- "$args0" "$args1" "$args2" "$args3" ;; - (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; - esac -fi - -# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules -function splitJvmOpts() { - JVM_OPTS=("$@") -} -eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS -JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" - -exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" diff --git a/gradle-examples/4/gradle-example-ci-server-bintray-info/gradlew.bat b/gradle-examples/4/gradle-example-ci-server-bintray-info/gradlew.bat deleted file mode 100644 index 8a0b282aa..000000000 --- a/gradle-examples/4/gradle-example-ci-server-bintray-info/gradlew.bat +++ /dev/null @@ -1,90 +0,0 @@ -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS= - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto init - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto init - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:init -@rem Get command-line arguments, handling Windowz variants - -if not "%OS%" == "Windows_NT" goto win9xME_args -if "%@eval[2+2]" == "4" goto 4NT_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* -goto execute - -:4NT_args -@rem Get arguments from the 4NT Shell from JP Software -set CMD_LINE_ARGS=%$ - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega diff --git a/gradle-examples/4/gradle-example-ci-server-bintray-info/services/webservice/build.gradle b/gradle-examples/4/gradle-example-ci-server-bintray-info/services/webservice/build.gradle deleted file mode 100644 index 56d0ba800..000000000 --- a/gradle-examples/4/gradle-example-ci-server-bintray-info/services/webservice/build.gradle +++ /dev/null @@ -1,6 +0,0 @@ -dependencies { - compile project(':shared'), 'commons-collections:commons-collections:3.2@jar', 'commons-io:commons-io:1.2', 'commons-lang:commons-lang:2.4@jar' - compile group: 'org.apache.wicket', name: 'wicket', version: '1.3.7' - compile group: 'junit', name: 'junit', version: '4.11' - compile project(':api') -} diff --git a/gradle-examples/4/gradle-example-ci-server-bintray-info/services/webservice/src/main/java/org/gradle/webservice/TestTest.java b/gradle-examples/4/gradle-example-ci-server-bintray-info/services/webservice/src/main/java/org/gradle/webservice/TestTest.java deleted file mode 100644 index 4843cca41..000000000 --- a/gradle-examples/4/gradle-example-ci-server-bintray-info/services/webservice/src/main/java/org/gradle/webservice/TestTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.webservice; - -import org.apache.commons.collections.list.GrowthList; -import org.apache.commons.io.FilenameUtils; -import org.apache.commons.lang.builder.ToStringBuilder; -import org.gradle.api.PersonList; -import org.gradle.shared.Person; - -public class TestTest { - private String name; - - public void method() { - FilenameUtils.separatorsToUnix("my/unix/filename"); - ToStringBuilder.reflectionToString(new Person("name")); - new GrowthList(); - new PersonList().doSomethingWithImpl(); // compile with api-spi, runtime with api - } - -} diff --git a/gradle-examples/4/gradle-example-ci-server-bintray-info/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java b/gradle-examples/4/gradle-example-ci-server-bintray-info/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java deleted file mode 100644 index b8e22a4ad..000000000 --- a/gradle-examples/4/gradle-example-ci-server-bintray-info/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2007 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.gradle.webservice; - -import junit.framework.TestCase; - -/** - * @author Hans Dockter - */ -public class TestTestTest extends TestCase { - public void testClasspath() { - new TestTest().method(); - } - - public void testApiCompileClasspath() { - new org.gradle.api.PersonList(); - } -} diff --git a/gradle-examples/4/gradle-example-ci-server-bintray-info/settings.gradle b/gradle-examples/4/gradle-example-ci-server-bintray-info/settings.gradle deleted file mode 100644 index 397a3021a..000000000 --- a/gradle-examples/4/gradle-example-ci-server-bintray-info/settings.gradle +++ /dev/null @@ -1 +0,0 @@ -include "shared", "api", "services:webservice" diff --git a/gradle-examples/4/gradle-example-ci-server-bintray-info/shared/src/main/java/org/gradle/shared/Person.java b/gradle-examples/4/gradle-example-ci-server-bintray-info/shared/src/main/java/org/gradle/shared/Person.java deleted file mode 100644 index d9ed11ee8..000000000 --- a/gradle-examples/4/gradle-example-ci-server-bintray-info/shared/src/main/java/org/gradle/shared/Person.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.shared; - -import java.io.IOException; -import java.util.Properties; - -public class Person { - private String name; - - public Person(String name) { - this.name = name; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String readProperty() throws IOException { - Properties properties = new Properties(); - properties.load(getClass().getClassLoader().getResourceAsStream("org/gradle/shared/main.properties")); - return properties.getProperty("main"); - } -} diff --git a/gradle-examples/4/gradle-example-ci-server-bintray-info/shared/src/main/java/org/gradle/shared/package-info.java b/gradle-examples/4/gradle-example-ci-server-bintray-info/shared/src/main/java/org/gradle/shared/package-info.java deleted file mode 100644 index 7c5f65caf..000000000 --- a/gradle-examples/4/gradle-example-ci-server-bintray-info/shared/src/main/java/org/gradle/shared/package-info.java +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * These are the shared classes. - */ -package org.gradle.shared; diff --git a/gradle-examples/4/gradle-example-ci-server-bintray-info/shared/src/main/resources/org/gradle/shared/main.properties b/gradle-examples/4/gradle-example-ci-server-bintray-info/shared/src/main/resources/org/gradle/shared/main.properties deleted file mode 100644 index 68fed4627..000000000 --- a/gradle-examples/4/gradle-example-ci-server-bintray-info/shared/src/main/resources/org/gradle/shared/main.properties +++ /dev/null @@ -1,17 +0,0 @@ -# -# Copyright (C) 2011 JFrog Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -main=mainValue diff --git a/gradle-examples/4/gradle-example-ci-server/api/build.gradle b/gradle-examples/4/gradle-example-ci-server/api/build.gradle deleted file mode 100644 index 5c001ccf3..000000000 --- a/gradle-examples/4/gradle-example-ci-server/api/build.gradle +++ /dev/null @@ -1,15 +0,0 @@ -configurations { - spi -} - -dependencies { - compile project(':shared') - compile module("commons-lang:commons-lang:2.4") { - dependency("commons-io:commons-io:1.2") - } - compile group: 'org.apache.wicket', name: 'wicket', version: '1.3.7' - -} - -// Just a smoke test that using this option does not lead to any exception -compileJava.options.compilerArgs = ['-Xlint:unchecked'] diff --git a/gradle-examples/4/gradle-example-ci-server/api/src/main/java/org/gradle/api/PersonList.java b/gradle-examples/4/gradle-example-ci-server/api/src/main/java/org/gradle/api/PersonList.java deleted file mode 100644 index 1d80a16b3..000000000 --- a/gradle-examples/4/gradle-example-ci-server/api/src/main/java/org/gradle/api/PersonList.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.api; - -import org.gradle.apiImpl.Impl; -import org.gradle.shared.Person; - -import java.util.ArrayList; - - -public class PersonList { - private ArrayList persons = new ArrayList(); - - public void doSomethingWithImpl() { - org.apache.commons.lang.builder.ToStringBuilder stringBuilder; - try { - Class.forName("org.apache.commons.io.FileUtils"); - } catch (ClassNotFoundException e) { - throw new RuntimeException(e); - } - new Impl().implMethod(); - } - -} diff --git a/gradle-examples/4/gradle-example-ci-server/api/src/main/java/org/gradle/api/package.html b/gradle-examples/4/gradle-example-ci-server/api/src/main/java/org/gradle/api/package.html deleted file mode 100644 index cea998a80..000000000 --- a/gradle-examples/4/gradle-example-ci-server/api/src/main/java/org/gradle/api/package.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -

These are the API classes

- diff --git a/gradle-examples/4/gradle-example-ci-server/api/src/main/java/org/gradle/apiImpl/Impl.java b/gradle-examples/4/gradle-example-ci-server/api/src/main/java/org/gradle/apiImpl/Impl.java deleted file mode 100644 index 76cf0cc22..000000000 --- a/gradle-examples/4/gradle-example-ci-server/api/src/main/java/org/gradle/apiImpl/Impl.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.apiImpl; - - -public class Impl { - - public void implMethod() { - double a = 4.0 * 4; - } - -} diff --git a/gradle-examples/4/gradle-example-ci-server/gradle.properties b/gradle-examples/4/gradle-example-ci-server/gradle.properties deleted file mode 100644 index 740496fb4..000000000 --- a/gradle-examples/4/gradle-example-ci-server/gradle.properties +++ /dev/null @@ -1,3 +0,0 @@ -currentVersion=2.3-SNAPSHOT -artifactory_password=password -artifactory_user=admin diff --git a/gradle-examples/4/gradle-example-ci-server/gradle/wrapper/gradle-wrapper.jar b/gradle-examples/4/gradle-example-ci-server/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index 085a1cdc2..000000000 Binary files a/gradle-examples/4/gradle-example-ci-server/gradle/wrapper/gradle-wrapper.jar and /dev/null differ diff --git a/gradle-examples/4/gradle-example-ci-server/gradlew b/gradle-examples/4/gradle-example-ci-server/gradlew deleted file mode 100755 index 91a7e269e..000000000 --- a/gradle-examples/4/gradle-example-ci-server/gradlew +++ /dev/null @@ -1,164 +0,0 @@ -#!/usr/bin/env bash - -############################################################################## -## -## Gradle start up script for UN*X -## -############################################################################## - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS="" - -APP_NAME="Gradle" -APP_BASE_NAME=`basename "$0"` - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" - -warn ( ) { - echo "$*" -} - -die ( ) { - echo - echo "$*" - echo - exit 1 -} - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MINGW* ) - msys=true - ;; -esac - -# For Cygwin, ensure paths are in UNIX format before anything is touched. -if $cygwin ; then - [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` -fi - -# Attempt to set APP_HOME -# Resolve links: $0 may be a link -PRG="$0" -# Need this for relative symlinks. -while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`"/$link" - fi -done -SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >&- -APP_HOME="`pwd -P`" -cd "$SAVED" >&- - -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar - -# Determine the Java command to use to start the JVM. -if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -else - JAVACMD="java" - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi - -# Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" - fi -fi - -# For Darwin, add options to specify how the application appears in the dock -if $darwin; then - GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" -fi - -# For Cygwin, switch paths to Windows format before running java -if $cygwin ; then - APP_HOME=`cygpath --path --mixed "$APP_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi - # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" - fi - i=$((i+1)) - done - case $i in - (0) set -- ;; - (1) set -- "$args0" ;; - (2) set -- "$args0" "$args1" ;; - (3) set -- "$args0" "$args1" "$args2" ;; - (4) set -- "$args0" "$args1" "$args2" "$args3" ;; - (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; - esac -fi - -# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules -function splitJvmOpts() { - JVM_OPTS=("$@") -} -eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS -JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" - -exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" diff --git a/gradle-examples/4/gradle-example-ci-server/gradlew.bat b/gradle-examples/4/gradle-example-ci-server/gradlew.bat deleted file mode 100644 index 8a0b282aa..000000000 --- a/gradle-examples/4/gradle-example-ci-server/gradlew.bat +++ /dev/null @@ -1,90 +0,0 @@ -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS= - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto init - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto init - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:init -@rem Get command-line arguments, handling Windowz variants - -if not "%OS%" == "Windows_NT" goto win9xME_args -if "%@eval[2+2]" == "4" goto 4NT_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* -goto execute - -:4NT_args -@rem Get arguments from the 4NT Shell from JP Software -set CMD_LINE_ARGS=%$ - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega diff --git a/gradle-examples/4/gradle-example-ci-server/services/webservice/build.gradle b/gradle-examples/4/gradle-example-ci-server/services/webservice/build.gradle deleted file mode 100644 index 8aa87fc5c..000000000 --- a/gradle-examples/4/gradle-example-ci-server/services/webservice/build.gradle +++ /dev/null @@ -1,8 +0,0 @@ -apply plugin: 'war' - -dependencies { - compile project(':shared'), 'commons-collections:commons-collections:3.2@jar', 'commons-io:commons-io:1.2', 'commons-lang:commons-lang:2.4@jar' - compile group: 'org.apache.wicket', name: 'wicket', version: '1.3.7' - compile group: 'junit', name: 'junit', version: '4.11' - compile project(':api') -} diff --git a/gradle-examples/4/gradle-example-ci-server/services/webservice/src/main/java/org/gradle/webservice/TestTest.java b/gradle-examples/4/gradle-example-ci-server/services/webservice/src/main/java/org/gradle/webservice/TestTest.java deleted file mode 100644 index 4843cca41..000000000 --- a/gradle-examples/4/gradle-example-ci-server/services/webservice/src/main/java/org/gradle/webservice/TestTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.webservice; - -import org.apache.commons.collections.list.GrowthList; -import org.apache.commons.io.FilenameUtils; -import org.apache.commons.lang.builder.ToStringBuilder; -import org.gradle.api.PersonList; -import org.gradle.shared.Person; - -public class TestTest { - private String name; - - public void method() { - FilenameUtils.separatorsToUnix("my/unix/filename"); - ToStringBuilder.reflectionToString(new Person("name")); - new GrowthList(); - new PersonList().doSomethingWithImpl(); // compile with api-spi, runtime with api - } - -} diff --git a/gradle-examples/4/gradle-example-ci-server/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java b/gradle-examples/4/gradle-example-ci-server/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java deleted file mode 100644 index b8e22a4ad..000000000 --- a/gradle-examples/4/gradle-example-ci-server/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2007 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.gradle.webservice; - -import junit.framework.TestCase; - -/** - * @author Hans Dockter - */ -public class TestTestTest extends TestCase { - public void testClasspath() { - new TestTest().method(); - } - - public void testApiCompileClasspath() { - new org.gradle.api.PersonList(); - } -} diff --git a/gradle-examples/4/gradle-example-ci-server/settings.gradle b/gradle-examples/4/gradle-example-ci-server/settings.gradle deleted file mode 100644 index 397a3021a..000000000 --- a/gradle-examples/4/gradle-example-ci-server/settings.gradle +++ /dev/null @@ -1 +0,0 @@ -include "shared", "api", "services:webservice" diff --git a/gradle-examples/4/gradle-example-ci-server/shared/src/main/java/org/gradle/shared/Person.java b/gradle-examples/4/gradle-example-ci-server/shared/src/main/java/org/gradle/shared/Person.java deleted file mode 100644 index d9ed11ee8..000000000 --- a/gradle-examples/4/gradle-example-ci-server/shared/src/main/java/org/gradle/shared/Person.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.shared; - -import java.io.IOException; -import java.util.Properties; - -public class Person { - private String name; - - public Person(String name) { - this.name = name; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String readProperty() throws IOException { - Properties properties = new Properties(); - properties.load(getClass().getClassLoader().getResourceAsStream("org/gradle/shared/main.properties")); - return properties.getProperty("main"); - } -} diff --git a/gradle-examples/4/gradle-example-ci-server/shared/src/main/java/org/gradle/shared/package-info.java b/gradle-examples/4/gradle-example-ci-server/shared/src/main/java/org/gradle/shared/package-info.java deleted file mode 100644 index 7c5f65caf..000000000 --- a/gradle-examples/4/gradle-example-ci-server/shared/src/main/java/org/gradle/shared/package-info.java +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * These are the shared classes. - */ -package org.gradle.shared; diff --git a/gradle-examples/4/gradle-example-ci-server/shared/src/main/resources/org/gradle/shared/main.properties b/gradle-examples/4/gradle-example-ci-server/shared/src/main/resources/org/gradle/shared/main.properties deleted file mode 100644 index 68fed4627..000000000 --- a/gradle-examples/4/gradle-example-ci-server/shared/src/main/resources/org/gradle/shared/main.properties +++ /dev/null @@ -1,17 +0,0 @@ -# -# Copyright (C) 2011 JFrog Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -main=mainValue diff --git a/gradle-examples/4/gradle-example-minimal/gradle.properties b/gradle-examples/4/gradle-example-minimal/gradle.properties deleted file mode 100644 index 266947aa2..000000000 --- a/gradle-examples/4/gradle-example-minimal/gradle.properties +++ /dev/null @@ -1,3 +0,0 @@ -currentVersion=1.0-SNAPSHOT -artifactory_user=admin -artifactory_password=password diff --git a/gradle-examples/4/gradle-example-minimal/gradle/wrapper/gradle-wrapper.jar b/gradle-examples/4/gradle-example-minimal/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index 085a1cdc2..000000000 Binary files a/gradle-examples/4/gradle-example-minimal/gradle/wrapper/gradle-wrapper.jar and /dev/null differ diff --git a/gradle-examples/4/gradle-example-minimal/gradlew b/gradle-examples/4/gradle-example-minimal/gradlew deleted file mode 100755 index d8809f151..000000000 --- a/gradle-examples/4/gradle-example-minimal/gradlew +++ /dev/null @@ -1,168 +0,0 @@ -#!/bin/bash - -############################################################################## -## ## -## Gradle wrapper script for UN*X ## -## ## -############################################################################## - -# Uncomment those lines to set JVM options. GRADLE_OPTS and JAVA_OPTS can be used together. -# GRADLE_OPTS="$GRADLE_OPTS -Xmx512m" -# JAVA_OPTS="$JAVA_OPTS -Xmx512m" - -GRADLE_APP_NAME=Gradle - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" - -warn ( ) { - echo "$*" -} - -die ( ) { - echo - echo "$*" - echo - exit 1 -} - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MINGW* ) - msys=true - ;; -esac - -# Attempt to set JAVA_HOME if it's not already set. -if [ -z "$JAVA_HOME" ] ; then - if $darwin ; then - [ -z "$JAVA_HOME" -a -d "/Library/Java/Home" ] && export JAVA_HOME="/Library/Java/Home" - [ -z "$JAVA_HOME" -a -d "/System/Library/Frameworks/JavaVM.framework/Home" ] && export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home" - else - javaExecutable="`which javac`" - [ -z "$javaExecutable" -o "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ] && die "JAVA_HOME not set and cannot find javac to deduce location, please set JAVA_HOME." - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - [ `expr "$readLink" : '\([^ ]*\)'` = "no" ] && die "JAVA_HOME not set and readlink not available, please set JAVA_HOME." - javaExecutable="`readlink -f \"$javaExecutable\"`" - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - export JAVA_HOME="$javaHome" - fi -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched. -if $cygwin ; then - [ -n "$JAVACMD" ] && JAVACMD=`cygpath --unix "$JAVACMD"` - [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` -fi - -STARTER_MAIN_CLASS=org.gradle.wrapper.GradleWrapperMain -CLASSPATH=`dirname "$0"`/gradle/wrapper/gradle-wrapper.jar -WRAPPER_PROPERTIES=`dirname "$0"`/gradle/wrapper/gradle-wrapper.properties -# Determine the Java command to use to start the JVM. -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="java" - fi -fi -if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi -if [ -z "$JAVA_HOME" ] ; then - warn "JAVA_HOME environment variable is not set" -fi - -# Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query businessSystem maximum file descriptor limit: $MAX_FD_LIMIT" - fi -fi - -# For Darwin, add GRADLE_APP_NAME to the JAVA_OPTS as -Xdock:name -if $darwin; then - JAVA_OPTS="$JAVA_OPTS -Xdock:name=$GRADLE_APP_NAME" -# we may also want to set -Xdock:image -fi - -# For Cygwin, switch paths to Windows format before running java -if $cygwin ; then - JAVA_HOME=`cygpath --path --mixed "$JAVA_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi - # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" - fi - i=$((i+1)) - done - case $i in - (0) set -- ;; - (1) set -- "$args0" ;; - (2) set -- "$args0" "$args1" ;; - (3) set -- "$args0" "$args1" "$args2" ;; - (4) set -- "$args0" "$args1" "$args2" "$args3" ;; - (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; - esac -fi - -GRADLE_APP_BASE_NAME=`basename "$0"` - -exec "$JAVACMD" $JAVA_OPTS $GRADLE_OPTS \ - -classpath "$CLASSPATH" \ - -Dorg.gradle.appname="$GRADLE_APP_BASE_NAME" \ - -Dorg.gradle.wrapper.properties="$WRAPPER_PROPERTIES" \ - $STARTER_MAIN_CLASS \ - "$@" diff --git a/gradle-examples/4/gradle-example-minimal/gradlew.bat b/gradle-examples/4/gradle-example-minimal/gradlew.bat deleted file mode 100644 index 479fdddbd..000000000 --- a/gradle-examples/4/gradle-example-minimal/gradlew.bat +++ /dev/null @@ -1,82 +0,0 @@ -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem ## -@rem Gradle startup script for Windows ## -@rem ## -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -@rem Uncomment those lines to set JVM options. GRADLE_OPTS and JAVA_OPTS can be used together. -@rem set GRADLE_OPTS=%GRADLE_OPTS% -Xmx512m -@rem set JAVA_OPTS=%JAVA_OPTS% -Xmx512m - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=.\ - -@rem Find java.exe -set JAVA_EXE=java.exe -if not defined JAVA_HOME goto init - -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto init - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. -echo. -goto end - -:init -@rem Get command-line arguments, handling Windowz variants - -if not "%OS%" == "Windows_NT" goto win9xME_args -if "%eval[2+2]" == "4" goto 4NT_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* -goto execute - -:4NT_args -@rem Get arguments from the 4NT Shell from JP Software -set CMD_LINE_ARGS=%$ - -:execute -@rem Setup the command line - -set STARTER_MAIN_CLASS=org.gradle.wrapper.GradleWrapperMain -set CLASSPATH=%DIRNAME%\gradle\wrapper\gradle-wrapper.jar -set WRAPPER_PROPERTIES=%DIRNAME%\gradle\wrapper\gradle-wrapper.properties - -set GRADLE_OPTS=%JAVA_OPTS% %GRADLE_OPTS% -Dorg.gradle.wrapper.properties="%WRAPPER_PROPERTIES%" - -@rem Execute Gradle -"%JAVA_EXE%" %GRADLE_OPTS% -classpath "%CLASSPATH%" %STARTER_MAIN_CLASS% %CMD_LINE_ARGS% - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -if not "%OS%"=="Windows_NT" echo 1 > nul | choice /n /c:1 - -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit "%ERRORLEVEL%" -exit /b "%ERRORLEVEL%" - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega \ No newline at end of file diff --git a/gradle-examples/4/gradle-example-minimal/src/main/java/org/gradle/api/PersonList.java b/gradle-examples/4/gradle-example-minimal/src/main/java/org/gradle/api/PersonList.java deleted file mode 100644 index cac6e3ebb..000000000 --- a/gradle-examples/4/gradle-example-minimal/src/main/java/org/gradle/api/PersonList.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.api; - -import java.util.Date; - -public class PersonList { - private Date date = null; - - public void doSomething() { - date = new Date(); - } -} diff --git a/gradle-examples/4/gradle-example-minimal/src/main/java/org/gradle/api/package.html b/gradle-examples/4/gradle-example-minimal/src/main/java/org/gradle/api/package.html deleted file mode 100644 index cea998a80..000000000 --- a/gradle-examples/4/gradle-example-minimal/src/main/java/org/gradle/api/package.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -

These are the API classes

- diff --git a/gradle-examples/4/gradle-example-multi-repos/api/src/main/java/org/gradle/api/PersonList.java b/gradle-examples/4/gradle-example-multi-repos/api/src/main/java/org/gradle/api/PersonList.java deleted file mode 100644 index 1d80a16b3..000000000 --- a/gradle-examples/4/gradle-example-multi-repos/api/src/main/java/org/gradle/api/PersonList.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.api; - -import org.gradle.apiImpl.Impl; -import org.gradle.shared.Person; - -import java.util.ArrayList; - - -public class PersonList { - private ArrayList persons = new ArrayList(); - - public void doSomethingWithImpl() { - org.apache.commons.lang.builder.ToStringBuilder stringBuilder; - try { - Class.forName("org.apache.commons.io.FileUtils"); - } catch (ClassNotFoundException e) { - throw new RuntimeException(e); - } - new Impl().implMethod(); - } - -} diff --git a/gradle-examples/4/gradle-example-multi-repos/api/src/main/java/org/gradle/api/package.html b/gradle-examples/4/gradle-example-multi-repos/api/src/main/java/org/gradle/api/package.html deleted file mode 100644 index cea998a80..000000000 --- a/gradle-examples/4/gradle-example-multi-repos/api/src/main/java/org/gradle/api/package.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -

These are the API classes

- diff --git a/gradle-examples/4/gradle-example-multi-repos/api/src/main/java/org/gradle/apiImpl/Impl.java b/gradle-examples/4/gradle-example-multi-repos/api/src/main/java/org/gradle/apiImpl/Impl.java deleted file mode 100644 index 76cf0cc22..000000000 --- a/gradle-examples/4/gradle-example-multi-repos/api/src/main/java/org/gradle/apiImpl/Impl.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.apiImpl; - - -public class Impl { - - public void implMethod() { - double a = 4.0 * 4; - } - -} diff --git a/gradle-examples/4/gradle-example-multi-repos/gradle.properties b/gradle-examples/4/gradle-example-multi-repos/gradle.properties deleted file mode 100644 index 266947aa2..000000000 --- a/gradle-examples/4/gradle-example-multi-repos/gradle.properties +++ /dev/null @@ -1,3 +0,0 @@ -currentVersion=1.0-SNAPSHOT -artifactory_user=admin -artifactory_password=password diff --git a/gradle-examples/4/gradle-example-multi-repos/gradle/wrapper/gradle-wrapper.jar b/gradle-examples/4/gradle-example-multi-repos/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index 085a1cdc2..000000000 Binary files a/gradle-examples/4/gradle-example-multi-repos/gradle/wrapper/gradle-wrapper.jar and /dev/null differ diff --git a/gradle-examples/4/gradle-example-multi-repos/gradle/wrapper/gradle-wrapper.properties b/gradle-examples/4/gradle-example-multi-repos/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index 745ba8b14..000000000 --- a/gradle-examples/4/gradle-example-multi-repos/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Mon Jul 20 09:52:53 IDT 2015 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.3.1-all.zip diff --git a/gradle-examples/4/gradle-example-multi-repos/gradlew b/gradle-examples/4/gradle-example-multi-repos/gradlew deleted file mode 100755 index d8809f151..000000000 --- a/gradle-examples/4/gradle-example-multi-repos/gradlew +++ /dev/null @@ -1,168 +0,0 @@ -#!/bin/bash - -############################################################################## -## ## -## Gradle wrapper script for UN*X ## -## ## -############################################################################## - -# Uncomment those lines to set JVM options. GRADLE_OPTS and JAVA_OPTS can be used together. -# GRADLE_OPTS="$GRADLE_OPTS -Xmx512m" -# JAVA_OPTS="$JAVA_OPTS -Xmx512m" - -GRADLE_APP_NAME=Gradle - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" - -warn ( ) { - echo "$*" -} - -die ( ) { - echo - echo "$*" - echo - exit 1 -} - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MINGW* ) - msys=true - ;; -esac - -# Attempt to set JAVA_HOME if it's not already set. -if [ -z "$JAVA_HOME" ] ; then - if $darwin ; then - [ -z "$JAVA_HOME" -a -d "/Library/Java/Home" ] && export JAVA_HOME="/Library/Java/Home" - [ -z "$JAVA_HOME" -a -d "/System/Library/Frameworks/JavaVM.framework/Home" ] && export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home" - else - javaExecutable="`which javac`" - [ -z "$javaExecutable" -o "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ] && die "JAVA_HOME not set and cannot find javac to deduce location, please set JAVA_HOME." - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - [ `expr "$readLink" : '\([^ ]*\)'` = "no" ] && die "JAVA_HOME not set and readlink not available, please set JAVA_HOME." - javaExecutable="`readlink -f \"$javaExecutable\"`" - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - export JAVA_HOME="$javaHome" - fi -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched. -if $cygwin ; then - [ -n "$JAVACMD" ] && JAVACMD=`cygpath --unix "$JAVACMD"` - [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` -fi - -STARTER_MAIN_CLASS=org.gradle.wrapper.GradleWrapperMain -CLASSPATH=`dirname "$0"`/gradle/wrapper/gradle-wrapper.jar -WRAPPER_PROPERTIES=`dirname "$0"`/gradle/wrapper/gradle-wrapper.properties -# Determine the Java command to use to start the JVM. -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="java" - fi -fi -if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi -if [ -z "$JAVA_HOME" ] ; then - warn "JAVA_HOME environment variable is not set" -fi - -# Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query businessSystem maximum file descriptor limit: $MAX_FD_LIMIT" - fi -fi - -# For Darwin, add GRADLE_APP_NAME to the JAVA_OPTS as -Xdock:name -if $darwin; then - JAVA_OPTS="$JAVA_OPTS -Xdock:name=$GRADLE_APP_NAME" -# we may also want to set -Xdock:image -fi - -# For Cygwin, switch paths to Windows format before running java -if $cygwin ; then - JAVA_HOME=`cygpath --path --mixed "$JAVA_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi - # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" - fi - i=$((i+1)) - done - case $i in - (0) set -- ;; - (1) set -- "$args0" ;; - (2) set -- "$args0" "$args1" ;; - (3) set -- "$args0" "$args1" "$args2" ;; - (4) set -- "$args0" "$args1" "$args2" "$args3" ;; - (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; - esac -fi - -GRADLE_APP_BASE_NAME=`basename "$0"` - -exec "$JAVACMD" $JAVA_OPTS $GRADLE_OPTS \ - -classpath "$CLASSPATH" \ - -Dorg.gradle.appname="$GRADLE_APP_BASE_NAME" \ - -Dorg.gradle.wrapper.properties="$WRAPPER_PROPERTIES" \ - $STARTER_MAIN_CLASS \ - "$@" diff --git a/gradle-examples/4/gradle-example-multi-repos/gradlew.bat b/gradle-examples/4/gradle-example-multi-repos/gradlew.bat deleted file mode 100644 index 479fdddbd..000000000 --- a/gradle-examples/4/gradle-example-multi-repos/gradlew.bat +++ /dev/null @@ -1,82 +0,0 @@ -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem ## -@rem Gradle startup script for Windows ## -@rem ## -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -@rem Uncomment those lines to set JVM options. GRADLE_OPTS and JAVA_OPTS can be used together. -@rem set GRADLE_OPTS=%GRADLE_OPTS% -Xmx512m -@rem set JAVA_OPTS=%JAVA_OPTS% -Xmx512m - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=.\ - -@rem Find java.exe -set JAVA_EXE=java.exe -if not defined JAVA_HOME goto init - -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto init - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. -echo. -goto end - -:init -@rem Get command-line arguments, handling Windowz variants - -if not "%OS%" == "Windows_NT" goto win9xME_args -if "%eval[2+2]" == "4" goto 4NT_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* -goto execute - -:4NT_args -@rem Get arguments from the 4NT Shell from JP Software -set CMD_LINE_ARGS=%$ - -:execute -@rem Setup the command line - -set STARTER_MAIN_CLASS=org.gradle.wrapper.GradleWrapperMain -set CLASSPATH=%DIRNAME%\gradle\wrapper\gradle-wrapper.jar -set WRAPPER_PROPERTIES=%DIRNAME%\gradle\wrapper\gradle-wrapper.properties - -set GRADLE_OPTS=%JAVA_OPTS% %GRADLE_OPTS% -Dorg.gradle.wrapper.properties="%WRAPPER_PROPERTIES%" - -@rem Execute Gradle -"%JAVA_EXE%" %GRADLE_OPTS% -classpath "%CLASSPATH%" %STARTER_MAIN_CLASS% %CMD_LINE_ARGS% - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -if not "%OS%"=="Windows_NT" echo 1 > nul | choice /n /c:1 - -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit "%ERRORLEVEL%" -exit /b "%ERRORLEVEL%" - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega \ No newline at end of file diff --git a/gradle-examples/4/gradle-example-multi-repos/services/webservice/src/main/java/org/gradle/webservice/TestTest.java b/gradle-examples/4/gradle-example-multi-repos/services/webservice/src/main/java/org/gradle/webservice/TestTest.java deleted file mode 100644 index 4843cca41..000000000 --- a/gradle-examples/4/gradle-example-multi-repos/services/webservice/src/main/java/org/gradle/webservice/TestTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.webservice; - -import org.apache.commons.collections.list.GrowthList; -import org.apache.commons.io.FilenameUtils; -import org.apache.commons.lang.builder.ToStringBuilder; -import org.gradle.api.PersonList; -import org.gradle.shared.Person; - -public class TestTest { - private String name; - - public void method() { - FilenameUtils.separatorsToUnix("my/unix/filename"); - ToStringBuilder.reflectionToString(new Person("name")); - new GrowthList(); - new PersonList().doSomethingWithImpl(); // compile with api-spi, runtime with api - } - -} diff --git a/gradle-examples/4/gradle-example-multi-repos/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java b/gradle-examples/4/gradle-example-multi-repos/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java deleted file mode 100644 index b8e22a4ad..000000000 --- a/gradle-examples/4/gradle-example-multi-repos/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2007 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.gradle.webservice; - -import junit.framework.TestCase; - -/** - * @author Hans Dockter - */ -public class TestTestTest extends TestCase { - public void testClasspath() { - new TestTest().method(); - } - - public void testApiCompileClasspath() { - new org.gradle.api.PersonList(); - } -} diff --git a/gradle-examples/4/gradle-example-multi-repos/settings.gradle b/gradle-examples/4/gradle-example-multi-repos/settings.gradle deleted file mode 100644 index 397a3021a..000000000 --- a/gradle-examples/4/gradle-example-multi-repos/settings.gradle +++ /dev/null @@ -1 +0,0 @@ -include "shared", "api", "services:webservice" diff --git a/gradle-examples/4/gradle-example-multi-repos/shared/src/main/java/org/gradle/shared/Person.java b/gradle-examples/4/gradle-example-multi-repos/shared/src/main/java/org/gradle/shared/Person.java deleted file mode 100644 index d9ed11ee8..000000000 --- a/gradle-examples/4/gradle-example-multi-repos/shared/src/main/java/org/gradle/shared/Person.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.shared; - -import java.io.IOException; -import java.util.Properties; - -public class Person { - private String name; - - public Person(String name) { - this.name = name; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String readProperty() throws IOException { - Properties properties = new Properties(); - properties.load(getClass().getClassLoader().getResourceAsStream("org/gradle/shared/main.properties")); - return properties.getProperty("main"); - } -} diff --git a/gradle-examples/4/gradle-example-multi-repos/shared/src/main/java/org/gradle/shared/package-info.java b/gradle-examples/4/gradle-example-multi-repos/shared/src/main/java/org/gradle/shared/package-info.java deleted file mode 100644 index 7c5f65caf..000000000 --- a/gradle-examples/4/gradle-example-multi-repos/shared/src/main/java/org/gradle/shared/package-info.java +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * These are the shared classes. - */ -package org.gradle.shared; diff --git a/gradle-examples/4/gradle-example-multi-repos/shared/src/main/resources/org/gradle/shared/main.properties b/gradle-examples/4/gradle-example-multi-repos/shared/src/main/resources/org/gradle/shared/main.properties deleted file mode 100644 index 68fed4627..000000000 --- a/gradle-examples/4/gradle-example-multi-repos/shared/src/main/resources/org/gradle/shared/main.properties +++ /dev/null @@ -1,17 +0,0 @@ -# -# Copyright (C) 2011 JFrog Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -main=mainValue diff --git a/gradle-examples/4/gradle-example-publish-bintray-info/bintray-descriptor.bintray-info.json b/gradle-examples/4/gradle-example-publish-bintray-info/bintray-descriptor.bintray-info.json deleted file mode 100644 index 3aa11e989..000000000 --- a/gradle-examples/4/gradle-example-publish-bintray-info/bintray-descriptor.bintray-info.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "package": { - "name": "auto-upload", - "repo": "maven", - "subject": "eyalbr", - "desc": "I was pushed completely automatically", - "website_url": "www.jfrog.com", - "issue_tracker_url": "https://github.com/bintray/bintray-client-java/issues", - "vcs_url": "https://github.com/bintray/bintray-client-java.git", - "licenses": ["MIT"], - "labels": ["cool", "awesome", "gorilla"], - "public_download_numbers": false, - "public_stats": false, - "attributes": [{"name": "att1", "values" : ["val1"], "type": "string"}, - {"name": "att2", "values" : [1, 2.2, 4], "type": "number"}, - {"name": "att5", "values" : ["2014-12-28T19:43:37+0100"], "type": "date"}] - }, - "version": { - "name": "3.5", - "desc": "This is a version", - "released": "2015-01-04", - "vcs_tag": "0.5", - "attributes": [{"name": "VerAtt1", "values" : ["VerVal1"], "type": "string"}, - {"name": "VerAtt2", "values" : [1, 3.3, 5], "type": "number"}, - {"name": "VerAtt3", "values" : ["2015-01-01T19:43:37+0100"], "type": "date"}], - "gpgSign": false - }, - "publish": true -} \ No newline at end of file diff --git a/gradle-examples/4/gradle-example-publish-bintray-info/bintray-info-template.json b/gradle-examples/4/gradle-example-publish-bintray-info/bintray-info-template.json deleted file mode 100644 index 032a9745f..000000000 --- a/gradle-examples/4/gradle-example-publish-bintray-info/bintray-info-template.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "package": { - "name": "auto-upload", - "repo": "maven", - "subject": "eyalbr", - "desc": "I was pushed completely automatically", - "website_url": "www.jfrog.com", - "issue_tracker_url": "https://github.com/bintray/bintray-client-java/issues", - "vcs_url": "https://github.com/bintray/bintray-client-java.git", - "licenses": ["MIT"], - "labels": ["cool", "awesome", "gorilla"], - "public_download_numbers": false, - "public_stats": false, - "attributes": [{"name": "att1", "values" : ["val1"], "type": "string"}, - {"name": "att2", "values" : [1, 2.2, 4], "type": "number"}, - {"name": "att5", "values" : ["2014-12-28T19:43:37+0100"], "type": "date"}] - }, - "version": { - "name": "$VERSION$", - "desc": "This is a version", - "released": "2015-01-04", - "vcs_tag": "0.5", - "attributes": [{"name": "VerAtt1", "values" : ["VerVal1"], "type": "string"}, - {"name": "VerAtt2", "values" : [1, 3.3, 5], "type": "number"}, - {"name": "VerAtt3", "values" : ["2015-01-01T19:43:37+0100"], "type": "date"}], - "gpgSign": false - }, - "publish": true -} \ No newline at end of file diff --git a/gradle-examples/4/gradle-example-publish-bintray-info/build.gradle b/gradle-examples/4/gradle-example-publish-bintray-info/build.gradle deleted file mode 100644 index c64853ca8..000000000 --- a/gradle-examples/4/gradle-example-publish-bintray-info/build.gradle +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright (C) 2013 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -buildscript { - repositories { - mavenLocal() - jcenter() - } - dependencies { - classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '4.+') - } -} - -version = currentVersion -def projectUrl = 'https://github.com/eyalbe4/project-examples' -def bintrayInfoFileName = 'bintray-descriptor.bintray-info.json' - -apply plugin: 'com.jfrog.artifactory' -apply plugin: 'java' -apply plugin: 'maven-publish' - -dependencies { - testCompile 'junit:junit:4.7' -} - -task sourceJar(type: Jar) { - from sourceSets.main.allSource - classifier = 'sources' -} - -task javadocJar(type: Jar, dependsOn: javadoc) { - classifier = 'javadoc' - from javadoc.destinationDir -} - -publishing { - publications { - mavenJava(MavenPublication) { - from components.java - artifact sourceJar - artifact javadocJar - artifact("$rootDir/$bintrayInfoFileName") { - extension "bintray-info.json" - } - - pom.withXml { - asNode().children().last() + { - resolveStrategy = Closure.DELEGATE_FIRST - name 'project-name' - description 'description for project' - url projectUrl - scm { - url projectUrl - connection projectUrl - developerConnection projectUrl - } - licenses { - license { - name 'The Apache Software License, Version 2.0' - url 'http://www.apache.org/licenses/LICENSE-2.0.txt' - distribution 'repo' - } - } - developers { - developer { - id 'JFrog' - name 'JFrogDev' - email 'jfrogdev@jfrog.com' - } - } - } - } - } - } -} - -task createBintrayInfoFile(type:Exec) { - println 'Creating bintray-info.json' - String fileContent = new File("$rootDir/bintray-info-template.json").getText('UTF-8') - fileContent = fileContent.replace('$VERSION$', currentVersion) - (new File("$rootDir/$bintrayInfoFileName")).write(fileContent) -} - -artifactory { - contextUrl = 'http://localhost:8081/artifactory' - publish { - repository { - repoKey = 'libs-snapshot-local' // The Artifactory repository key to publish to - username = "${artifactory_user}" // The publisher user name - password = "${artifactory_password}" // The publisher password - } - defaults { - // Reference to Gradle publications defined in the build script. - // This is how we tell the Artifactory Plugin which artifacts should be - // published to Artifactory. - publications('mavenJava') - publishArtifacts = true - // Properties to be attached to the published artifacts. - properties = ['qa.level': 'basic', 'dev.team' : 'core'] - // Publish generated POM files to Artifactory (true by default) - publishPom = false - } - } - resolve { - repoKey = 'jcenter' - } -} \ No newline at end of file diff --git a/gradle-examples/4/gradle-example-publish-bintray-info/gradle.properties b/gradle-examples/4/gradle-example-publish-bintray-info/gradle.properties deleted file mode 100644 index 5055ad8d1..000000000 --- a/gradle-examples/4/gradle-example-publish-bintray-info/gradle.properties +++ /dev/null @@ -1,3 +0,0 @@ -currentVersion=3.5 -artifactory_user=admin -artifactory_password=password diff --git a/gradle-examples/4/gradle-example-publish-bintray-info/gradle/wrapper/gradle-wrapper.jar b/gradle-examples/4/gradle-example-publish-bintray-info/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index 085a1cdc2..000000000 Binary files a/gradle-examples/4/gradle-example-publish-bintray-info/gradle/wrapper/gradle-wrapper.jar and /dev/null differ diff --git a/gradle-examples/4/gradle-example-publish-bintray-info/gradle/wrapper/gradle-wrapper.properties b/gradle-examples/4/gradle-example-publish-bintray-info/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index efae0675b..000000000 --- a/gradle-examples/4/gradle-example-publish-bintray-info/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Mon Jul 20 09:53:20 IDT 2015 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.3.1-all.zip diff --git a/gradle-examples/4/gradle-example-publish-bintray-info/gradlew b/gradle-examples/4/gradle-example-publish-bintray-info/gradlew deleted file mode 100755 index d8809f151..000000000 --- a/gradle-examples/4/gradle-example-publish-bintray-info/gradlew +++ /dev/null @@ -1,168 +0,0 @@ -#!/bin/bash - -############################################################################## -## ## -## Gradle wrapper script for UN*X ## -## ## -############################################################################## - -# Uncomment those lines to set JVM options. GRADLE_OPTS and JAVA_OPTS can be used together. -# GRADLE_OPTS="$GRADLE_OPTS -Xmx512m" -# JAVA_OPTS="$JAVA_OPTS -Xmx512m" - -GRADLE_APP_NAME=Gradle - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" - -warn ( ) { - echo "$*" -} - -die ( ) { - echo - echo "$*" - echo - exit 1 -} - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MINGW* ) - msys=true - ;; -esac - -# Attempt to set JAVA_HOME if it's not already set. -if [ -z "$JAVA_HOME" ] ; then - if $darwin ; then - [ -z "$JAVA_HOME" -a -d "/Library/Java/Home" ] && export JAVA_HOME="/Library/Java/Home" - [ -z "$JAVA_HOME" -a -d "/System/Library/Frameworks/JavaVM.framework/Home" ] && export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home" - else - javaExecutable="`which javac`" - [ -z "$javaExecutable" -o "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ] && die "JAVA_HOME not set and cannot find javac to deduce location, please set JAVA_HOME." - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - [ `expr "$readLink" : '\([^ ]*\)'` = "no" ] && die "JAVA_HOME not set and readlink not available, please set JAVA_HOME." - javaExecutable="`readlink -f \"$javaExecutable\"`" - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - export JAVA_HOME="$javaHome" - fi -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched. -if $cygwin ; then - [ -n "$JAVACMD" ] && JAVACMD=`cygpath --unix "$JAVACMD"` - [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` -fi - -STARTER_MAIN_CLASS=org.gradle.wrapper.GradleWrapperMain -CLASSPATH=`dirname "$0"`/gradle/wrapper/gradle-wrapper.jar -WRAPPER_PROPERTIES=`dirname "$0"`/gradle/wrapper/gradle-wrapper.properties -# Determine the Java command to use to start the JVM. -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="java" - fi -fi -if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi -if [ -z "$JAVA_HOME" ] ; then - warn "JAVA_HOME environment variable is not set" -fi - -# Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query businessSystem maximum file descriptor limit: $MAX_FD_LIMIT" - fi -fi - -# For Darwin, add GRADLE_APP_NAME to the JAVA_OPTS as -Xdock:name -if $darwin; then - JAVA_OPTS="$JAVA_OPTS -Xdock:name=$GRADLE_APP_NAME" -# we may also want to set -Xdock:image -fi - -# For Cygwin, switch paths to Windows format before running java -if $cygwin ; then - JAVA_HOME=`cygpath --path --mixed "$JAVA_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi - # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" - fi - i=$((i+1)) - done - case $i in - (0) set -- ;; - (1) set -- "$args0" ;; - (2) set -- "$args0" "$args1" ;; - (3) set -- "$args0" "$args1" "$args2" ;; - (4) set -- "$args0" "$args1" "$args2" "$args3" ;; - (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; - esac -fi - -GRADLE_APP_BASE_NAME=`basename "$0"` - -exec "$JAVACMD" $JAVA_OPTS $GRADLE_OPTS \ - -classpath "$CLASSPATH" \ - -Dorg.gradle.appname="$GRADLE_APP_BASE_NAME" \ - -Dorg.gradle.wrapper.properties="$WRAPPER_PROPERTIES" \ - $STARTER_MAIN_CLASS \ - "$@" diff --git a/gradle-examples/4/gradle-example-publish-bintray-info/gradlew.bat b/gradle-examples/4/gradle-example-publish-bintray-info/gradlew.bat deleted file mode 100644 index 479fdddbd..000000000 --- a/gradle-examples/4/gradle-example-publish-bintray-info/gradlew.bat +++ /dev/null @@ -1,82 +0,0 @@ -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem ## -@rem Gradle startup script for Windows ## -@rem ## -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -@rem Uncomment those lines to set JVM options. GRADLE_OPTS and JAVA_OPTS can be used together. -@rem set GRADLE_OPTS=%GRADLE_OPTS% -Xmx512m -@rem set JAVA_OPTS=%JAVA_OPTS% -Xmx512m - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=.\ - -@rem Find java.exe -set JAVA_EXE=java.exe -if not defined JAVA_HOME goto init - -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto init - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. -echo. -goto end - -:init -@rem Get command-line arguments, handling Windowz variants - -if not "%OS%" == "Windows_NT" goto win9xME_args -if "%eval[2+2]" == "4" goto 4NT_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* -goto execute - -:4NT_args -@rem Get arguments from the 4NT Shell from JP Software -set CMD_LINE_ARGS=%$ - -:execute -@rem Setup the command line - -set STARTER_MAIN_CLASS=org.gradle.wrapper.GradleWrapperMain -set CLASSPATH=%DIRNAME%\gradle\wrapper\gradle-wrapper.jar -set WRAPPER_PROPERTIES=%DIRNAME%\gradle\wrapper\gradle-wrapper.properties - -set GRADLE_OPTS=%JAVA_OPTS% %GRADLE_OPTS% -Dorg.gradle.wrapper.properties="%WRAPPER_PROPERTIES%" - -@rem Execute Gradle -"%JAVA_EXE%" %GRADLE_OPTS% -classpath "%CLASSPATH%" %STARTER_MAIN_CLASS% %CMD_LINE_ARGS% - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -if not "%OS%"=="Windows_NT" echo 1 > nul | choice /n /c:1 - -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit "%ERRORLEVEL%" -exit /b "%ERRORLEVEL%" - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega \ No newline at end of file diff --git a/gradle-examples/4/gradle-example-publish-bintray-info/src/main/java/org/gradle/api/PersonList.java b/gradle-examples/4/gradle-example-publish-bintray-info/src/main/java/org/gradle/api/PersonList.java deleted file mode 100644 index cac6e3ebb..000000000 --- a/gradle-examples/4/gradle-example-publish-bintray-info/src/main/java/org/gradle/api/PersonList.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.api; - -import java.util.Date; - -public class PersonList { - private Date date = null; - - public void doSomething() { - date = new Date(); - } -} diff --git a/gradle-examples/4/gradle-example-publish-bintray-info/src/main/java/org/gradle/api/package.html b/gradle-examples/4/gradle-example-publish-bintray-info/src/main/java/org/gradle/api/package.html deleted file mode 100644 index cea998a80..000000000 --- a/gradle-examples/4/gradle-example-publish-bintray-info/src/main/java/org/gradle/api/package.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -

These are the API classes

- diff --git a/gradle-examples/4/gradle-example-publish/api/build.gradle b/gradle-examples/4/gradle-example-publish/api/build.gradle deleted file mode 100644 index 5c001ccf3..000000000 --- a/gradle-examples/4/gradle-example-publish/api/build.gradle +++ /dev/null @@ -1,15 +0,0 @@ -configurations { - spi -} - -dependencies { - compile project(':shared') - compile module("commons-lang:commons-lang:2.4") { - dependency("commons-io:commons-io:1.2") - } - compile group: 'org.apache.wicket', name: 'wicket', version: '1.3.7' - -} - -// Just a smoke test that using this option does not lead to any exception -compileJava.options.compilerArgs = ['-Xlint:unchecked'] diff --git a/gradle-examples/4/gradle-example-publish/api/src/main/java/org/gradle/api/PersonList.java b/gradle-examples/4/gradle-example-publish/api/src/main/java/org/gradle/api/PersonList.java deleted file mode 100644 index 1d80a16b3..000000000 --- a/gradle-examples/4/gradle-example-publish/api/src/main/java/org/gradle/api/PersonList.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.api; - -import org.gradle.apiImpl.Impl; -import org.gradle.shared.Person; - -import java.util.ArrayList; - - -public class PersonList { - private ArrayList persons = new ArrayList(); - - public void doSomethingWithImpl() { - org.apache.commons.lang.builder.ToStringBuilder stringBuilder; - try { - Class.forName("org.apache.commons.io.FileUtils"); - } catch (ClassNotFoundException e) { - throw new RuntimeException(e); - } - new Impl().implMethod(); - } - -} diff --git a/gradle-examples/4/gradle-example-publish/api/src/main/java/org/gradle/api/package.html b/gradle-examples/4/gradle-example-publish/api/src/main/java/org/gradle/api/package.html deleted file mode 100644 index cea998a80..000000000 --- a/gradle-examples/4/gradle-example-publish/api/src/main/java/org/gradle/api/package.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -

These are the API classes

- diff --git a/gradle-examples/4/gradle-example-publish/api/src/main/java/org/gradle/apiImpl/Impl.java b/gradle-examples/4/gradle-example-publish/api/src/main/java/org/gradle/apiImpl/Impl.java deleted file mode 100644 index 76cf0cc22..000000000 --- a/gradle-examples/4/gradle-example-publish/api/src/main/java/org/gradle/apiImpl/Impl.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.apiImpl; - - -public class Impl { - - public void implMethod() { - double a = 4.0 * 4; - } - -} diff --git a/gradle-examples/4/gradle-example-publish/gradle.properties b/gradle-examples/4/gradle-example-publish/gradle.properties deleted file mode 100644 index 266947aa2..000000000 --- a/gradle-examples/4/gradle-example-publish/gradle.properties +++ /dev/null @@ -1,3 +0,0 @@ -currentVersion=1.0-SNAPSHOT -artifactory_user=admin -artifactory_password=password diff --git a/gradle-examples/4/gradle-example-publish/gradle/wrapper/gradle-wrapper.jar b/gradle-examples/4/gradle-example-publish/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index 085a1cdc2..000000000 Binary files a/gradle-examples/4/gradle-example-publish/gradle/wrapper/gradle-wrapper.jar and /dev/null differ diff --git a/gradle-examples/4/gradle-example-publish/gradlew b/gradle-examples/4/gradle-example-publish/gradlew deleted file mode 100755 index d8809f151..000000000 --- a/gradle-examples/4/gradle-example-publish/gradlew +++ /dev/null @@ -1,168 +0,0 @@ -#!/bin/bash - -############################################################################## -## ## -## Gradle wrapper script for UN*X ## -## ## -############################################################################## - -# Uncomment those lines to set JVM options. GRADLE_OPTS and JAVA_OPTS can be used together. -# GRADLE_OPTS="$GRADLE_OPTS -Xmx512m" -# JAVA_OPTS="$JAVA_OPTS -Xmx512m" - -GRADLE_APP_NAME=Gradle - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" - -warn ( ) { - echo "$*" -} - -die ( ) { - echo - echo "$*" - echo - exit 1 -} - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MINGW* ) - msys=true - ;; -esac - -# Attempt to set JAVA_HOME if it's not already set. -if [ -z "$JAVA_HOME" ] ; then - if $darwin ; then - [ -z "$JAVA_HOME" -a -d "/Library/Java/Home" ] && export JAVA_HOME="/Library/Java/Home" - [ -z "$JAVA_HOME" -a -d "/System/Library/Frameworks/JavaVM.framework/Home" ] && export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home" - else - javaExecutable="`which javac`" - [ -z "$javaExecutable" -o "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ] && die "JAVA_HOME not set and cannot find javac to deduce location, please set JAVA_HOME." - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - [ `expr "$readLink" : '\([^ ]*\)'` = "no" ] && die "JAVA_HOME not set and readlink not available, please set JAVA_HOME." - javaExecutable="`readlink -f \"$javaExecutable\"`" - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - export JAVA_HOME="$javaHome" - fi -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched. -if $cygwin ; then - [ -n "$JAVACMD" ] && JAVACMD=`cygpath --unix "$JAVACMD"` - [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` -fi - -STARTER_MAIN_CLASS=org.gradle.wrapper.GradleWrapperMain -CLASSPATH=`dirname "$0"`/gradle/wrapper/gradle-wrapper.jar -WRAPPER_PROPERTIES=`dirname "$0"`/gradle/wrapper/gradle-wrapper.properties -# Determine the Java command to use to start the JVM. -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="java" - fi -fi -if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi -if [ -z "$JAVA_HOME" ] ; then - warn "JAVA_HOME environment variable is not set" -fi - -# Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query businessSystem maximum file descriptor limit: $MAX_FD_LIMIT" - fi -fi - -# For Darwin, add GRADLE_APP_NAME to the JAVA_OPTS as -Xdock:name -if $darwin; then - JAVA_OPTS="$JAVA_OPTS -Xdock:name=$GRADLE_APP_NAME" -# we may also want to set -Xdock:image -fi - -# For Cygwin, switch paths to Windows format before running java -if $cygwin ; then - JAVA_HOME=`cygpath --path --mixed "$JAVA_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi - # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" - fi - i=$((i+1)) - done - case $i in - (0) set -- ;; - (1) set -- "$args0" ;; - (2) set -- "$args0" "$args1" ;; - (3) set -- "$args0" "$args1" "$args2" ;; - (4) set -- "$args0" "$args1" "$args2" "$args3" ;; - (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; - esac -fi - -GRADLE_APP_BASE_NAME=`basename "$0"` - -exec "$JAVACMD" $JAVA_OPTS $GRADLE_OPTS \ - -classpath "$CLASSPATH" \ - -Dorg.gradle.appname="$GRADLE_APP_BASE_NAME" \ - -Dorg.gradle.wrapper.properties="$WRAPPER_PROPERTIES" \ - $STARTER_MAIN_CLASS \ - "$@" diff --git a/gradle-examples/4/gradle-example-publish/gradlew.bat b/gradle-examples/4/gradle-example-publish/gradlew.bat deleted file mode 100644 index 479fdddbd..000000000 --- a/gradle-examples/4/gradle-example-publish/gradlew.bat +++ /dev/null @@ -1,82 +0,0 @@ -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem ## -@rem Gradle startup script for Windows ## -@rem ## -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -@rem Uncomment those lines to set JVM options. GRADLE_OPTS and JAVA_OPTS can be used together. -@rem set GRADLE_OPTS=%GRADLE_OPTS% -Xmx512m -@rem set JAVA_OPTS=%JAVA_OPTS% -Xmx512m - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=.\ - -@rem Find java.exe -set JAVA_EXE=java.exe -if not defined JAVA_HOME goto init - -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto init - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. -echo. -goto end - -:init -@rem Get command-line arguments, handling Windowz variants - -if not "%OS%" == "Windows_NT" goto win9xME_args -if "%eval[2+2]" == "4" goto 4NT_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* -goto execute - -:4NT_args -@rem Get arguments from the 4NT Shell from JP Software -set CMD_LINE_ARGS=%$ - -:execute -@rem Setup the command line - -set STARTER_MAIN_CLASS=org.gradle.wrapper.GradleWrapperMain -set CLASSPATH=%DIRNAME%\gradle\wrapper\gradle-wrapper.jar -set WRAPPER_PROPERTIES=%DIRNAME%\gradle\wrapper\gradle-wrapper.properties - -set GRADLE_OPTS=%JAVA_OPTS% %GRADLE_OPTS% -Dorg.gradle.wrapper.properties="%WRAPPER_PROPERTIES%" - -@rem Execute Gradle -"%JAVA_EXE%" %GRADLE_OPTS% -classpath "%CLASSPATH%" %STARTER_MAIN_CLASS% %CMD_LINE_ARGS% - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -if not "%OS%"=="Windows_NT" echo 1 > nul | choice /n /c:1 - -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit "%ERRORLEVEL%" -exit /b "%ERRORLEVEL%" - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega \ No newline at end of file diff --git a/gradle-examples/4/gradle-example-publish/services/webservice/build.gradle b/gradle-examples/4/gradle-example-publish/services/webservice/build.gradle deleted file mode 100644 index 8170f19e8..000000000 --- a/gradle-examples/4/gradle-example-publish/services/webservice/build.gradle +++ /dev/null @@ -1,7 +0,0 @@ -apply plugin: 'war' - -dependencies { - compile project(':shared'), 'commons-collections:commons-collections:3.2@jar', 'commons-io:commons-io:1.2', 'commons-lang:commons-lang:2.4@jar' - compile group: 'org.apache.wicket', name: 'wicket', version: '1.3.7' - compile project(':api') -} diff --git a/gradle-examples/4/gradle-example-publish/services/webservice/src/main/java/org/gradle/webservice/TestTest.java b/gradle-examples/4/gradle-example-publish/services/webservice/src/main/java/org/gradle/webservice/TestTest.java deleted file mode 100644 index 4843cca41..000000000 --- a/gradle-examples/4/gradle-example-publish/services/webservice/src/main/java/org/gradle/webservice/TestTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.webservice; - -import org.apache.commons.collections.list.GrowthList; -import org.apache.commons.io.FilenameUtils; -import org.apache.commons.lang.builder.ToStringBuilder; -import org.gradle.api.PersonList; -import org.gradle.shared.Person; - -public class TestTest { - private String name; - - public void method() { - FilenameUtils.separatorsToUnix("my/unix/filename"); - ToStringBuilder.reflectionToString(new Person("name")); - new GrowthList(); - new PersonList().doSomethingWithImpl(); // compile with api-spi, runtime with api - } - -} diff --git a/gradle-examples/4/gradle-example-publish/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java b/gradle-examples/4/gradle-example-publish/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java deleted file mode 100644 index b8e22a4ad..000000000 --- a/gradle-examples/4/gradle-example-publish/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2007 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.gradle.webservice; - -import junit.framework.TestCase; - -/** - * @author Hans Dockter - */ -public class TestTestTest extends TestCase { - public void testClasspath() { - new TestTest().method(); - } - - public void testApiCompileClasspath() { - new org.gradle.api.PersonList(); - } -} diff --git a/gradle-examples/4/gradle-example-publish/settings.gradle b/gradle-examples/4/gradle-example-publish/settings.gradle deleted file mode 100644 index 397a3021a..000000000 --- a/gradle-examples/4/gradle-example-publish/settings.gradle +++ /dev/null @@ -1 +0,0 @@ -include "shared", "api", "services:webservice" diff --git a/gradle-examples/4/gradle-example-publish/shared/src/main/java/org/gradle/shared/Person.java b/gradle-examples/4/gradle-example-publish/shared/src/main/java/org/gradle/shared/Person.java deleted file mode 100644 index d9ed11ee8..000000000 --- a/gradle-examples/4/gradle-example-publish/shared/src/main/java/org/gradle/shared/Person.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.shared; - -import java.io.IOException; -import java.util.Properties; - -public class Person { - private String name; - - public Person(String name) { - this.name = name; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String readProperty() throws IOException { - Properties properties = new Properties(); - properties.load(getClass().getClassLoader().getResourceAsStream("org/gradle/shared/main.properties")); - return properties.getProperty("main"); - } -} diff --git a/gradle-examples/4/gradle-example-publish/shared/src/main/java/org/gradle/shared/package-info.java b/gradle-examples/4/gradle-example-publish/shared/src/main/java/org/gradle/shared/package-info.java deleted file mode 100644 index 7c5f65caf..000000000 --- a/gradle-examples/4/gradle-example-publish/shared/src/main/java/org/gradle/shared/package-info.java +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * These are the shared classes. - */ -package org.gradle.shared; diff --git a/gradle-examples/4/gradle-example-publish/shared/src/main/resources/org/gradle/shared/main.properties b/gradle-examples/4/gradle-example-publish/shared/src/main/resources/org/gradle/shared/main.properties deleted file mode 100644 index 68fed4627..000000000 --- a/gradle-examples/4/gradle-example-publish/shared/src/main/resources/org/gradle/shared/main.properties +++ /dev/null @@ -1,17 +0,0 @@ -# -# Copyright (C) 2011 JFrog Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -main=mainValue diff --git a/gradle-examples/4/gradle-example/api/build.gradle b/gradle-examples/4/gradle-example/api/build.gradle deleted file mode 100644 index 5c001ccf3..000000000 --- a/gradle-examples/4/gradle-example/api/build.gradle +++ /dev/null @@ -1,15 +0,0 @@ -configurations { - spi -} - -dependencies { - compile project(':shared') - compile module("commons-lang:commons-lang:2.4") { - dependency("commons-io:commons-io:1.2") - } - compile group: 'org.apache.wicket', name: 'wicket', version: '1.3.7' - -} - -// Just a smoke test that using this option does not lead to any exception -compileJava.options.compilerArgs = ['-Xlint:unchecked'] diff --git a/gradle-examples/4/gradle-example/api/src/main/java/org/gradle/api/PersonList.java b/gradle-examples/4/gradle-example/api/src/main/java/org/gradle/api/PersonList.java deleted file mode 100644 index 1d80a16b3..000000000 --- a/gradle-examples/4/gradle-example/api/src/main/java/org/gradle/api/PersonList.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.api; - -import org.gradle.apiImpl.Impl; -import org.gradle.shared.Person; - -import java.util.ArrayList; - - -public class PersonList { - private ArrayList persons = new ArrayList(); - - public void doSomethingWithImpl() { - org.apache.commons.lang.builder.ToStringBuilder stringBuilder; - try { - Class.forName("org.apache.commons.io.FileUtils"); - } catch (ClassNotFoundException e) { - throw new RuntimeException(e); - } - new Impl().implMethod(); - } - -} diff --git a/gradle-examples/4/gradle-example/api/src/main/java/org/gradle/api/package.html b/gradle-examples/4/gradle-example/api/src/main/java/org/gradle/api/package.html deleted file mode 100644 index cea998a80..000000000 --- a/gradle-examples/4/gradle-example/api/src/main/java/org/gradle/api/package.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -

These are the API classes

- diff --git a/gradle-examples/4/gradle-example/api/src/main/java/org/gradle/apiImpl/Impl.java b/gradle-examples/4/gradle-example/api/src/main/java/org/gradle/apiImpl/Impl.java deleted file mode 100644 index 76cf0cc22..000000000 --- a/gradle-examples/4/gradle-example/api/src/main/java/org/gradle/apiImpl/Impl.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.apiImpl; - - -public class Impl { - - public void implMethod() { - double a = 4.0 * 4; - } - -} diff --git a/gradle-examples/4/gradle-example/gradle.properties b/gradle-examples/4/gradle-example/gradle.properties deleted file mode 100644 index 266947aa2..000000000 --- a/gradle-examples/4/gradle-example/gradle.properties +++ /dev/null @@ -1,3 +0,0 @@ -currentVersion=1.0-SNAPSHOT -artifactory_user=admin -artifactory_password=password diff --git a/gradle-examples/4/gradle-example/gradle/wrapper/gradle-wrapper.jar b/gradle-examples/4/gradle-example/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index 085a1cdc2..000000000 Binary files a/gradle-examples/4/gradle-example/gradle/wrapper/gradle-wrapper.jar and /dev/null differ diff --git a/gradle-examples/4/gradle-example/gradle/wrapper/gradle-wrapper.properties b/gradle-examples/4/gradle-example/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index 745ba8b14..000000000 --- a/gradle-examples/4/gradle-example/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Mon Jul 20 09:52:53 IDT 2015 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.3.1-all.zip diff --git a/gradle-examples/4/gradle-example/gradlew b/gradle-examples/4/gradle-example/gradlew deleted file mode 100755 index 91a7e269e..000000000 --- a/gradle-examples/4/gradle-example/gradlew +++ /dev/null @@ -1,164 +0,0 @@ -#!/usr/bin/env bash - -############################################################################## -## -## Gradle start up script for UN*X -## -############################################################################## - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS="" - -APP_NAME="Gradle" -APP_BASE_NAME=`basename "$0"` - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" - -warn ( ) { - echo "$*" -} - -die ( ) { - echo - echo "$*" - echo - exit 1 -} - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MINGW* ) - msys=true - ;; -esac - -# For Cygwin, ensure paths are in UNIX format before anything is touched. -if $cygwin ; then - [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` -fi - -# Attempt to set APP_HOME -# Resolve links: $0 may be a link -PRG="$0" -# Need this for relative symlinks. -while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`"/$link" - fi -done -SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >&- -APP_HOME="`pwd -P`" -cd "$SAVED" >&- - -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar - -# Determine the Java command to use to start the JVM. -if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -else - JAVACMD="java" - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi - -# Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" - fi -fi - -# For Darwin, add options to specify how the application appears in the dock -if $darwin; then - GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" -fi - -# For Cygwin, switch paths to Windows format before running java -if $cygwin ; then - APP_HOME=`cygpath --path --mixed "$APP_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi - # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" - fi - i=$((i+1)) - done - case $i in - (0) set -- ;; - (1) set -- "$args0" ;; - (2) set -- "$args0" "$args1" ;; - (3) set -- "$args0" "$args1" "$args2" ;; - (4) set -- "$args0" "$args1" "$args2" "$args3" ;; - (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; - esac -fi - -# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules -function splitJvmOpts() { - JVM_OPTS=("$@") -} -eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS -JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" - -exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" diff --git a/gradle-examples/4/gradle-example/gradlew.bat b/gradle-examples/4/gradle-example/gradlew.bat deleted file mode 100644 index 8a0b282aa..000000000 --- a/gradle-examples/4/gradle-example/gradlew.bat +++ /dev/null @@ -1,90 +0,0 @@ -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS= - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto init - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto init - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:init -@rem Get command-line arguments, handling Windowz variants - -if not "%OS%" == "Windows_NT" goto win9xME_args -if "%@eval[2+2]" == "4" goto 4NT_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* -goto execute - -:4NT_args -@rem Get arguments from the 4NT Shell from JP Software -set CMD_LINE_ARGS=%$ - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega diff --git a/gradle-examples/4/gradle-example/init.gradle b/gradle-examples/4/gradle-example/init.gradle deleted file mode 100644 index e0a1fad7e..000000000 --- a/gradle-examples/4/gradle-example/init.gradle +++ /dev/null @@ -1,17 +0,0 @@ -gradle.projectsLoaded { - rootProject.allprojects { - buildscript { - repositories { - maven{ - //url "http://repo.jfrog.org/artifactory/gradle" - //url "http://localhost:8081/artifactory/gradle" - url "http://localhost:8080/artifactory/gradle-snapshot-local" - } - //mavenLocal() - dependencies { - classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '2.2.4') - } - } - } - } -} diff --git a/gradle-examples/4/gradle-example/services/webservice/build.gradle b/gradle-examples/4/gradle-example/services/webservice/build.gradle deleted file mode 100644 index 8170f19e8..000000000 --- a/gradle-examples/4/gradle-example/services/webservice/build.gradle +++ /dev/null @@ -1,7 +0,0 @@ -apply plugin: 'war' - -dependencies { - compile project(':shared'), 'commons-collections:commons-collections:3.2@jar', 'commons-io:commons-io:1.2', 'commons-lang:commons-lang:2.4@jar' - compile group: 'org.apache.wicket', name: 'wicket', version: '1.3.7' - compile project(':api') -} diff --git a/gradle-examples/4/gradle-example/services/webservice/src/main/java/org/gradle/webservice/TestTest.java b/gradle-examples/4/gradle-example/services/webservice/src/main/java/org/gradle/webservice/TestTest.java deleted file mode 100644 index 4843cca41..000000000 --- a/gradle-examples/4/gradle-example/services/webservice/src/main/java/org/gradle/webservice/TestTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.webservice; - -import org.apache.commons.collections.list.GrowthList; -import org.apache.commons.io.FilenameUtils; -import org.apache.commons.lang.builder.ToStringBuilder; -import org.gradle.api.PersonList; -import org.gradle.shared.Person; - -public class TestTest { - private String name; - - public void method() { - FilenameUtils.separatorsToUnix("my/unix/filename"); - ToStringBuilder.reflectionToString(new Person("name")); - new GrowthList(); - new PersonList().doSomethingWithImpl(); // compile with api-spi, runtime with api - } - -} diff --git a/gradle-examples/4/gradle-example/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java b/gradle-examples/4/gradle-example/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java deleted file mode 100644 index b8e22a4ad..000000000 --- a/gradle-examples/4/gradle-example/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2007 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.gradle.webservice; - -import junit.framework.TestCase; - -/** - * @author Hans Dockter - */ -public class TestTestTest extends TestCase { - public void testClasspath() { - new TestTest().method(); - } - - public void testApiCompileClasspath() { - new org.gradle.api.PersonList(); - } -} diff --git a/gradle-examples/4/gradle-example/settings.gradle b/gradle-examples/4/gradle-example/settings.gradle deleted file mode 100644 index 397a3021a..000000000 --- a/gradle-examples/4/gradle-example/settings.gradle +++ /dev/null @@ -1 +0,0 @@ -include "shared", "api", "services:webservice" diff --git a/gradle-examples/4/gradle-example/shared/src/main/java/org/gradle/shared/Person.java b/gradle-examples/4/gradle-example/shared/src/main/java/org/gradle/shared/Person.java deleted file mode 100644 index d9ed11ee8..000000000 --- a/gradle-examples/4/gradle-example/shared/src/main/java/org/gradle/shared/Person.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.gradle.shared; - -import java.io.IOException; -import java.util.Properties; - -public class Person { - private String name; - - public Person(String name) { - this.name = name; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String readProperty() throws IOException { - Properties properties = new Properties(); - properties.load(getClass().getClassLoader().getResourceAsStream("org/gradle/shared/main.properties")); - return properties.getProperty("main"); - } -} diff --git a/gradle-examples/4/gradle-example/shared/src/main/java/org/gradle/shared/package-info.java b/gradle-examples/4/gradle-example/shared/src/main/java/org/gradle/shared/package-info.java deleted file mode 100644 index 7c5f65caf..000000000 --- a/gradle-examples/4/gradle-example/shared/src/main/java/org/gradle/shared/package-info.java +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (C) 2011 JFrog Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * These are the shared classes. - */ -package org.gradle.shared; diff --git a/gradle-examples/4/gradle-example/shared/src/main/resources/org/gradle/shared/main.properties b/gradle-examples/4/gradle-example/shared/src/main/resources/org/gradle/shared/main.properties deleted file mode 100644 index 68fed4627..000000000 --- a/gradle-examples/4/gradle-example/shared/src/main/resources/org/gradle/shared/main.properties +++ /dev/null @@ -1,17 +0,0 @@ -# -# Copyright (C) 2011 JFrog Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -main=mainValue diff --git a/gradle-examples/4/gradle-jcenter-resolve/build.gradle b/gradle-examples/4/gradle-jcenter-resolve/build.gradle deleted file mode 100644 index 5af9c91e6..000000000 --- a/gradle-examples/4/gradle-jcenter-resolve/build.gradle +++ /dev/null @@ -1,11 +0,0 @@ -apply plugin: 'java' - -group 'org.jfrog.gradle.example.jcenter' -version "1.0" - -repositories { - jcenter() -} -dependencies { - compile(group: 'commons-lang', name: 'commons-lang', version: '2.6') -} \ No newline at end of file diff --git a/gradle-examples/4/gradle-jcenter-resolve/gradle/wrapper/gradle-wrapper.jar b/gradle-examples/4/gradle-jcenter-resolve/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index 085a1cdc2..000000000 Binary files a/gradle-examples/4/gradle-jcenter-resolve/gradle/wrapper/gradle-wrapper.jar and /dev/null differ diff --git a/gradle-examples/4/gradle-jcenter-resolve/src/main/java/HelloWorld.java b/gradle-examples/4/gradle-jcenter-resolve/src/main/java/HelloWorld.java deleted file mode 100644 index 2063b96f6..000000000 --- a/gradle-examples/4/gradle-jcenter-resolve/src/main/java/HelloWorld.java +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Hello world! - */ -import org.apache.commons.lang.StringUtils; - -public class HelloWorld { - public static void main(String[] args) { - System.out.println(StringUtils.capitalize("hello world")); - } -} \ No newline at end of file diff --git a/gradle-examples/README.md b/gradle-examples/README.md index fd18bf5a7..7df7b664f 100644 --- a/gradle-examples/README.md +++ b/gradle-examples/README.md @@ -1,17 +1,71 @@ -## Gradle Artifactory Plugin Examples +# Gradle Artifactory Plugin Examples -### Overview +## Overview The Gradle Artifactory Plugin allows you to deploy your build artifacts and build information to Artifactory and also to resolve your build dependencies from Artifactory. The Plugin documentation is available [here](https://www.jfrog.com/confluence/display/RTF/Gradle+Artifactory+Plugin). We have included a few sample projects to help you get started using the plugin. -### Plugin Versions -Version 4.0.0 of the Gradle Artifactory Plugin has recently been released. -In addition to a few enhancements and improvements version 4 also includes the following change. -Before version 4, the plugin included two plugin IDs: *com.jfrog.artifactory-upload* for the usage of Gradle Configurations -and *com.jfrog.artifactory* for the usage of Gradle Publications. -To make it easier to configure the plugin, version 4 has removed the *com.jfrog.artifactory-upload* plugin ID, leaving only one plugin ID: *com.jfrog.artifactory*. This allows you to use both Configurations and Publications in the same build script. -We therefore split the Gradle examples -into [Version 4 Examples](https://github.com/JFrogDev/project-examples/tree/master/gradle-examples/4) -and [Version 3 Examples](https://github.com/JFrogDev/project-examples/tree/master/gradle-examples/3). +## Running the Examples +* The example projects are configured to work with an Artifactory instance accessed through the following URL:
+http://localhost:8081/artifactory
+This URL is defined inside the *build.gradle* file of each project. Please change it if your Artifactory instance is accessible through a different URL. +* Since all example projects are configured to resolve dependencies from 'jcenter', it is recommended to create a remote repository named *jcenter*, with *https://jcenter.bintray.com* as its URL. +* CD to one of the project's root directory and run the build using one of the following commands: + +```console +> gradle artifactoryPublish + +or with the gradle wrapper in Unix + +> ./gradlew artifactoryPublish + +and the gradle wrapper in Windows + +> gradlew.bat artifactoryPublish +``` + +## About the Examples +### gradle-example-minimal +A minimal sample project that uses the Gradle Artifactory Plugin to resolve and publish artifacts to Artifactory. + +### gradle-example-ci-server +Gradle sample project to be used with one of the Artifactory CI Server Plugins (Jenkins, TeamCity or Bamboo). +The Artifactory configuration in this case (repositories, Artifactory credentials, etc.) +is done from the CI Server UI. +You can still add the artifactory closure to the build script and have default values configured there, +but the values configured in the CI Server override them. +In this example, the only Artifactory property configured is "artifactoryPublish.skip = true". + +#### Important notes for using this example from a CI Server: + +* Make sure to have the "Project uses the Artifactory Gradle Plugin" check box in the CI Server UI unchecked, so that the CI Server Plugin automatically applies the Gradle Artifactory Plugin to your +build script. +* In order to publish the build artifacts to Artifactory, the published arrtifacts are added to the archives Gradle configuration. + +### gradle-example +Sample project that uses the Gradle Artifactory Plugin with Gradle Configurations. + +### gradle-example-publish +Sample project that uses the Gradle Artifactory Plugin with Gradle Publications. + +### gradle-android-example +Sample project that uses the Gradle Artifactory Plugin to deploy Android application(apk) and library(aar) to Artifactory. + +Compatible with Android gradle plugin version 3.0.x + +### gradle-jcenter-resolve +Resolves a dependency from jcenter. + +### gradle-cache-example +Simple copy of the `gradle-example` project with modified configuration to use Artifactory as an external +Gradle Build Cache. This feature was introduced with Gradle 3.5. +Please see https://docs.gradle.org/3.5/userguide/build_cache.html for more details. +To make it work, you'll need to create a generic repository in Artifactory called `gradle-cache-example`. +If you need to tweak the repo name or credentials, you can change them in `settings.gradle`. +The first time you should build this project with: + `./gradlew clean build --info -Pgradle.cache.push=true` +After downloading the correct Gradle version, it will take about about 11s and push the cache to Artifactory. During +tests execution, you should see the message `Executing heavy fake test`. +Then if you try it from a different environment, or simply rebuild with `./gradlew clean build`, +it will skip the test task, fetch the cache from Artifactory instead and should take about 1s. \ No newline at end of file diff --git a/gradle-examples/4/gradle-android-example/.gitignore b/gradle-examples/gradle-android-example/.gitignore similarity index 100% rename from gradle-examples/4/gradle-android-example/.gitignore rename to gradle-examples/gradle-android-example/.gitignore diff --git a/gradle-examples/4/gradle-android-example/app/.gitignore b/gradle-examples/gradle-android-example/app/.gitignore similarity index 100% rename from gradle-examples/4/gradle-android-example/app/.gitignore rename to gradle-examples/gradle-android-example/app/.gitignore diff --git a/gradle-examples/4/gradle-android-example/app/build.gradle b/gradle-examples/gradle-android-example/app/build.gradle similarity index 100% rename from gradle-examples/4/gradle-android-example/app/build.gradle rename to gradle-examples/gradle-android-example/app/build.gradle diff --git a/gradle-examples/4/gradle-android-example/app/proguard-rules.pro b/gradle-examples/gradle-android-example/app/proguard-rules.pro similarity index 100% rename from gradle-examples/4/gradle-android-example/app/proguard-rules.pro rename to gradle-examples/gradle-android-example/app/proguard-rules.pro diff --git a/gradle-examples/4/gradle-android-example/app/src/androidTest/java/android/example/jfrog/org/gradle_android_example/ExampleInstrumentedTest.java b/gradle-examples/gradle-android-example/app/src/androidTest/java/android/example/jfrog/org/gradle_android_example/ExampleInstrumentedTest.java similarity index 100% rename from gradle-examples/4/gradle-android-example/app/src/androidTest/java/android/example/jfrog/org/gradle_android_example/ExampleInstrumentedTest.java rename to gradle-examples/gradle-android-example/app/src/androidTest/java/android/example/jfrog/org/gradle_android_example/ExampleInstrumentedTest.java diff --git a/gradle-examples/4/gradle-android-example/app/src/main/AndroidManifest.xml b/gradle-examples/gradle-android-example/app/src/main/AndroidManifest.xml similarity index 100% rename from gradle-examples/4/gradle-android-example/app/src/main/AndroidManifest.xml rename to gradle-examples/gradle-android-example/app/src/main/AndroidManifest.xml diff --git a/gradle-examples/4/gradle-android-example/app/src/main/java/android/example/jfrog/org/gradle_android_example/MainActivity.java b/gradle-examples/gradle-android-example/app/src/main/java/android/example/jfrog/org/gradle_android_example/MainActivity.java similarity index 100% rename from gradle-examples/4/gradle-android-example/app/src/main/java/android/example/jfrog/org/gradle_android_example/MainActivity.java rename to gradle-examples/gradle-android-example/app/src/main/java/android/example/jfrog/org/gradle_android_example/MainActivity.java diff --git a/gradle-examples/4/gradle-android-example/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/gradle-examples/gradle-android-example/app/src/main/res/drawable-v24/ic_launcher_foreground.xml similarity index 100% rename from gradle-examples/4/gradle-android-example/app/src/main/res/drawable-v24/ic_launcher_foreground.xml rename to gradle-examples/gradle-android-example/app/src/main/res/drawable-v24/ic_launcher_foreground.xml diff --git a/gradle-examples/4/gradle-android-example/app/src/main/res/drawable/ic_launcher_background.xml b/gradle-examples/gradle-android-example/app/src/main/res/drawable/ic_launcher_background.xml similarity index 100% rename from gradle-examples/4/gradle-android-example/app/src/main/res/drawable/ic_launcher_background.xml rename to gradle-examples/gradle-android-example/app/src/main/res/drawable/ic_launcher_background.xml diff --git a/gradle-examples/4/gradle-android-example/app/src/main/res/layout/activity_main.xml b/gradle-examples/gradle-android-example/app/src/main/res/layout/activity_main.xml similarity index 100% rename from gradle-examples/4/gradle-android-example/app/src/main/res/layout/activity_main.xml rename to gradle-examples/gradle-android-example/app/src/main/res/layout/activity_main.xml diff --git a/gradle-examples/4/gradle-android-example/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/gradle-examples/gradle-android-example/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml similarity index 100% rename from gradle-examples/4/gradle-android-example/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml rename to gradle-examples/gradle-android-example/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml diff --git a/gradle-examples/4/gradle-android-example/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/gradle-examples/gradle-android-example/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml similarity index 100% rename from gradle-examples/4/gradle-android-example/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml rename to gradle-examples/gradle-android-example/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml diff --git a/gradle-examples/4/gradle-android-example/app/src/main/res/mipmap-hdpi/ic_launcher.png b/gradle-examples/gradle-android-example/app/src/main/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from gradle-examples/4/gradle-android-example/app/src/main/res/mipmap-hdpi/ic_launcher.png rename to gradle-examples/gradle-android-example/app/src/main/res/mipmap-hdpi/ic_launcher.png diff --git a/gradle-examples/4/gradle-android-example/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/gradle-examples/gradle-android-example/app/src/main/res/mipmap-hdpi/ic_launcher_round.png similarity index 100% rename from gradle-examples/4/gradle-android-example/app/src/main/res/mipmap-hdpi/ic_launcher_round.png rename to gradle-examples/gradle-android-example/app/src/main/res/mipmap-hdpi/ic_launcher_round.png diff --git a/gradle-examples/4/gradle-android-example/app/src/main/res/mipmap-mdpi/ic_launcher.png b/gradle-examples/gradle-android-example/app/src/main/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from gradle-examples/4/gradle-android-example/app/src/main/res/mipmap-mdpi/ic_launcher.png rename to gradle-examples/gradle-android-example/app/src/main/res/mipmap-mdpi/ic_launcher.png diff --git a/gradle-examples/4/gradle-android-example/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/gradle-examples/gradle-android-example/app/src/main/res/mipmap-mdpi/ic_launcher_round.png similarity index 100% rename from gradle-examples/4/gradle-android-example/app/src/main/res/mipmap-mdpi/ic_launcher_round.png rename to gradle-examples/gradle-android-example/app/src/main/res/mipmap-mdpi/ic_launcher_round.png diff --git a/gradle-examples/4/gradle-android-example/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/gradle-examples/gradle-android-example/app/src/main/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from gradle-examples/4/gradle-android-example/app/src/main/res/mipmap-xhdpi/ic_launcher.png rename to gradle-examples/gradle-android-example/app/src/main/res/mipmap-xhdpi/ic_launcher.png diff --git a/gradle-examples/4/gradle-android-example/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/gradle-examples/gradle-android-example/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png similarity index 100% rename from gradle-examples/4/gradle-android-example/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png rename to gradle-examples/gradle-android-example/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png diff --git a/gradle-examples/4/gradle-android-example/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/gradle-examples/gradle-android-example/app/src/main/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from gradle-examples/4/gradle-android-example/app/src/main/res/mipmap-xxhdpi/ic_launcher.png rename to gradle-examples/gradle-android-example/app/src/main/res/mipmap-xxhdpi/ic_launcher.png diff --git a/gradle-examples/4/gradle-android-example/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/gradle-examples/gradle-android-example/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png similarity index 100% rename from gradle-examples/4/gradle-android-example/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png rename to gradle-examples/gradle-android-example/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png diff --git a/gradle-examples/4/gradle-android-example/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/gradle-examples/gradle-android-example/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from gradle-examples/4/gradle-android-example/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png rename to gradle-examples/gradle-android-example/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/gradle-examples/4/gradle-android-example/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/gradle-examples/gradle-android-example/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png similarity index 100% rename from gradle-examples/4/gradle-android-example/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png rename to gradle-examples/gradle-android-example/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png diff --git a/gradle-examples/4/gradle-android-example/app/src/main/res/values/colors.xml b/gradle-examples/gradle-android-example/app/src/main/res/values/colors.xml similarity index 100% rename from gradle-examples/4/gradle-android-example/app/src/main/res/values/colors.xml rename to gradle-examples/gradle-android-example/app/src/main/res/values/colors.xml diff --git a/gradle-examples/4/gradle-android-example/app/src/main/res/values/strings.xml b/gradle-examples/gradle-android-example/app/src/main/res/values/strings.xml similarity index 100% rename from gradle-examples/4/gradle-android-example/app/src/main/res/values/strings.xml rename to gradle-examples/gradle-android-example/app/src/main/res/values/strings.xml diff --git a/gradle-examples/4/gradle-android-example/app/src/main/res/values/styles.xml b/gradle-examples/gradle-android-example/app/src/main/res/values/styles.xml similarity index 100% rename from gradle-examples/4/gradle-android-example/app/src/main/res/values/styles.xml rename to gradle-examples/gradle-android-example/app/src/main/res/values/styles.xml diff --git a/gradle-examples/4/gradle-android-example/app/src/test/java/android/example/jfrog/org/gradle_android_example/ExampleUnitTest.java b/gradle-examples/gradle-android-example/app/src/test/java/android/example/jfrog/org/gradle_android_example/ExampleUnitTest.java similarity index 100% rename from gradle-examples/4/gradle-android-example/app/src/test/java/android/example/jfrog/org/gradle_android_example/ExampleUnitTest.java rename to gradle-examples/gradle-android-example/app/src/test/java/android/example/jfrog/org/gradle_android_example/ExampleUnitTest.java diff --git a/gradle-examples/4/gradle-android-example/build.gradle b/gradle-examples/gradle-android-example/build.gradle similarity index 100% rename from gradle-examples/4/gradle-android-example/build.gradle rename to gradle-examples/gradle-android-example/build.gradle diff --git a/gradle-examples/4/gradle-android-example/gradle.properties b/gradle-examples/gradle-android-example/gradle.properties similarity index 100% rename from gradle-examples/4/gradle-android-example/gradle.properties rename to gradle-examples/gradle-android-example/gradle.properties diff --git a/gradle-examples/4/gradle-android-example/gradle/wrapper/gradle-wrapper.jar b/gradle-examples/gradle-android-example/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from gradle-examples/4/gradle-android-example/gradle/wrapper/gradle-wrapper.jar rename to gradle-examples/gradle-android-example/gradle/wrapper/gradle-wrapper.jar diff --git a/gradle-examples/4/gradle-android-example/gradle/wrapper/gradle-wrapper.properties b/gradle-examples/gradle-android-example/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from gradle-examples/4/gradle-android-example/gradle/wrapper/gradle-wrapper.properties rename to gradle-examples/gradle-android-example/gradle/wrapper/gradle-wrapper.properties diff --git a/gradle-examples/4/gradle-android-example/gradlew b/gradle-examples/gradle-android-example/gradlew similarity index 100% rename from gradle-examples/4/gradle-android-example/gradlew rename to gradle-examples/gradle-android-example/gradlew diff --git a/gradle-examples/3/gradle-android-aar/gradlew.bat b/gradle-examples/gradle-android-example/gradlew.bat similarity index 100% rename from gradle-examples/3/gradle-android-aar/gradlew.bat rename to gradle-examples/gradle-android-example/gradlew.bat diff --git a/gradle-examples/4/gradle-android-example/library/.gitignore b/gradle-examples/gradle-android-example/library/.gitignore similarity index 100% rename from gradle-examples/4/gradle-android-example/library/.gitignore rename to gradle-examples/gradle-android-example/library/.gitignore diff --git a/gradle-examples/4/gradle-android-example/library/build.gradle b/gradle-examples/gradle-android-example/library/build.gradle similarity index 100% rename from gradle-examples/4/gradle-android-example/library/build.gradle rename to gradle-examples/gradle-android-example/library/build.gradle diff --git a/gradle-examples/4/gradle-android-example/library/proguard-rules.pro b/gradle-examples/gradle-android-example/library/proguard-rules.pro similarity index 100% rename from gradle-examples/4/gradle-android-example/library/proguard-rules.pro rename to gradle-examples/gradle-android-example/library/proguard-rules.pro diff --git a/gradle-examples/4/gradle-android-example/library/src/androidTest/java/android/example/jfrog/org/library/ExampleInstrumentedTest.java b/gradle-examples/gradle-android-example/library/src/androidTest/java/android/example/jfrog/org/library/ExampleInstrumentedTest.java similarity index 100% rename from gradle-examples/4/gradle-android-example/library/src/androidTest/java/android/example/jfrog/org/library/ExampleInstrumentedTest.java rename to gradle-examples/gradle-android-example/library/src/androidTest/java/android/example/jfrog/org/library/ExampleInstrumentedTest.java diff --git a/gradle-examples/4/gradle-android-example/library/src/main/AndroidManifest.xml b/gradle-examples/gradle-android-example/library/src/main/AndroidManifest.xml similarity index 100% rename from gradle-examples/4/gradle-android-example/library/src/main/AndroidManifest.xml rename to gradle-examples/gradle-android-example/library/src/main/AndroidManifest.xml diff --git a/gradle-examples/4/gradle-android-example/library/src/main/res/values/strings.xml b/gradle-examples/gradle-android-example/library/src/main/res/values/strings.xml similarity index 100% rename from gradle-examples/4/gradle-android-example/library/src/main/res/values/strings.xml rename to gradle-examples/gradle-android-example/library/src/main/res/values/strings.xml diff --git a/gradle-examples/4/gradle-android-example/library/src/test/java/android/example/jfrog/org/library/ExampleUnitTest.java b/gradle-examples/gradle-android-example/library/src/test/java/android/example/jfrog/org/library/ExampleUnitTest.java similarity index 100% rename from gradle-examples/4/gradle-android-example/library/src/test/java/android/example/jfrog/org/library/ExampleUnitTest.java rename to gradle-examples/gradle-android-example/library/src/test/java/android/example/jfrog/org/library/ExampleUnitTest.java diff --git a/gradle-examples/4/gradle-android-example/settings.gradle b/gradle-examples/gradle-android-example/settings.gradle similarity index 100% rename from gradle-examples/4/gradle-android-example/settings.gradle rename to gradle-examples/gradle-android-example/settings.gradle diff --git a/gradle-examples/3/gradle-example-ci-server-bintray-info/api/build.gradle b/gradle-examples/gradle-cache-example/api/build.gradle similarity index 100% rename from gradle-examples/3/gradle-example-ci-server-bintray-info/api/build.gradle rename to gradle-examples/gradle-cache-example/api/build.gradle diff --git a/gradle-examples/3/gradle-example-ci-server-bintray-info/api/src/main/java/org/gradle/api/PersonList.java b/gradle-examples/gradle-cache-example/api/src/main/java/org/gradle/api/PersonList.java similarity index 100% rename from gradle-examples/3/gradle-example-ci-server-bintray-info/api/src/main/java/org/gradle/api/PersonList.java rename to gradle-examples/gradle-cache-example/api/src/main/java/org/gradle/api/PersonList.java diff --git a/gradle-examples/3/gradle-example-bintray-info/src/main/java/org/gradle/apiImpl/Impl.java b/gradle-examples/gradle-cache-example/api/src/main/java/org/gradle/apiImpl/Impl.java similarity index 100% rename from gradle-examples/3/gradle-example-bintray-info/src/main/java/org/gradle/apiImpl/Impl.java rename to gradle-examples/gradle-cache-example/api/src/main/java/org/gradle/apiImpl/Impl.java diff --git a/gradle-examples/4/gradle-cache-example/build.gradle b/gradle-examples/gradle-cache-example/build.gradle similarity index 100% rename from gradle-examples/4/gradle-cache-example/build.gradle rename to gradle-examples/gradle-cache-example/build.gradle diff --git a/gradle-examples/4/gradle-cache-example/gradle.properties b/gradle-examples/gradle-cache-example/gradle.properties similarity index 100% rename from gradle-examples/4/gradle-cache-example/gradle.properties rename to gradle-examples/gradle-cache-example/gradle.properties diff --git a/gradle-examples/4/gradle-cache-example/gradle/wrapper/gradle-wrapper.jar b/gradle-examples/gradle-cache-example/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from gradle-examples/4/gradle-cache-example/gradle/wrapper/gradle-wrapper.jar rename to gradle-examples/gradle-cache-example/gradle/wrapper/gradle-wrapper.jar diff --git a/gradle-examples/4/gradle-cache-example/gradle/wrapper/gradle-wrapper.properties b/gradle-examples/gradle-cache-example/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from gradle-examples/4/gradle-cache-example/gradle/wrapper/gradle-wrapper.properties rename to gradle-examples/gradle-cache-example/gradle/wrapper/gradle-wrapper.properties diff --git a/gradle-examples/3/gradle-android-aar/gradlew b/gradle-examples/gradle-cache-example/gradlew similarity index 100% rename from gradle-examples/3/gradle-android-aar/gradlew rename to gradle-examples/gradle-cache-example/gradlew diff --git a/gradle-examples/3/gradle-example-bintray-info/gradlew.bat b/gradle-examples/gradle-cache-example/gradlew.bat similarity index 100% rename from gradle-examples/3/gradle-example-bintray-info/gradlew.bat rename to gradle-examples/gradle-cache-example/gradlew.bat diff --git a/gradle-examples/3/gradle-example-bintray-info/init.gradle b/gradle-examples/gradle-cache-example/init.gradle similarity index 100% rename from gradle-examples/3/gradle-example-bintray-info/init.gradle rename to gradle-examples/gradle-cache-example/init.gradle diff --git a/gradle-examples/3/gradle-example-publish/services/webservice/build.gradle b/gradle-examples/gradle-cache-example/services/webservice/build.gradle similarity index 100% rename from gradle-examples/3/gradle-example-publish/services/webservice/build.gradle rename to gradle-examples/gradle-cache-example/services/webservice/build.gradle diff --git a/gradle-examples/3/gradle-example-ci-server-bintray-info/services/webservice/src/main/java/org/gradle/webservice/TestTest.java b/gradle-examples/gradle-cache-example/services/webservice/src/main/java/org/gradle/webservice/TestTest.java similarity index 100% rename from gradle-examples/3/gradle-example-ci-server-bintray-info/services/webservice/src/main/java/org/gradle/webservice/TestTest.java rename to gradle-examples/gradle-cache-example/services/webservice/src/main/java/org/gradle/webservice/TestTest.java diff --git a/gradle-examples/4/gradle-cache-example/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java b/gradle-examples/gradle-cache-example/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java similarity index 100% rename from gradle-examples/4/gradle-cache-example/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java rename to gradle-examples/gradle-cache-example/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java diff --git a/gradle-examples/4/gradle-cache-example/settings.gradle b/gradle-examples/gradle-cache-example/settings.gradle similarity index 100% rename from gradle-examples/4/gradle-cache-example/settings.gradle rename to gradle-examples/gradle-cache-example/settings.gradle diff --git a/gradle-examples/3/gradle-example-ci-server-bintray-info/shared/src/main/java/org/gradle/shared/Person.java b/gradle-examples/gradle-cache-example/shared/src/main/java/org/gradle/shared/Person.java similarity index 100% rename from gradle-examples/3/gradle-example-ci-server-bintray-info/shared/src/main/java/org/gradle/shared/Person.java rename to gradle-examples/gradle-cache-example/shared/src/main/java/org/gradle/shared/Person.java diff --git a/gradle-examples/3/gradle-example-ci-server-bintray-info/shared/src/main/java/org/gradle/shared/package-info.java b/gradle-examples/gradle-cache-example/shared/src/main/java/org/gradle/shared/package-info.java similarity index 100% rename from gradle-examples/3/gradle-example-ci-server-bintray-info/shared/src/main/java/org/gradle/shared/package-info.java rename to gradle-examples/gradle-cache-example/shared/src/main/java/org/gradle/shared/package-info.java diff --git a/gradle-examples/3/gradle-example-ci-server-bintray-info/shared/src/main/resources/org/gradle/shared/main.properties b/gradle-examples/gradle-cache-example/shared/src/main/resources/org/gradle/shared/main.properties similarity index 100% rename from gradle-examples/3/gradle-example-ci-server-bintray-info/shared/src/main/resources/org/gradle/shared/main.properties rename to gradle-examples/gradle-cache-example/shared/src/main/resources/org/gradle/shared/main.properties diff --git a/gradle-examples/3/gradle-example-ci-server/api/build.gradle b/gradle-examples/gradle-example-ci-server/api/build.gradle similarity index 100% rename from gradle-examples/3/gradle-example-ci-server/api/build.gradle rename to gradle-examples/gradle-example-ci-server/api/build.gradle diff --git a/gradle-examples/3/gradle-example-ci-server/api/src/main/java/org/gradle/api/PersonList.java b/gradle-examples/gradle-example-ci-server/api/src/main/java/org/gradle/api/PersonList.java similarity index 100% rename from gradle-examples/3/gradle-example-ci-server/api/src/main/java/org/gradle/api/PersonList.java rename to gradle-examples/gradle-example-ci-server/api/src/main/java/org/gradle/api/PersonList.java diff --git a/gradle-examples/3/gradle-example-bintray-info/src/main/java/org/gradle/api/package.html b/gradle-examples/gradle-example-ci-server/api/src/main/java/org/gradle/api/package.html similarity index 100% rename from gradle-examples/3/gradle-example-bintray-info/src/main/java/org/gradle/api/package.html rename to gradle-examples/gradle-example-ci-server/api/src/main/java/org/gradle/api/package.html diff --git a/gradle-examples/3/gradle-example-ci-server-bintray-info/api/src/main/java/org/gradle/apiImpl/Impl.java b/gradle-examples/gradle-example-ci-server/api/src/main/java/org/gradle/apiImpl/Impl.java similarity index 100% rename from gradle-examples/3/gradle-example-ci-server-bintray-info/api/src/main/java/org/gradle/apiImpl/Impl.java rename to gradle-examples/gradle-example-ci-server/api/src/main/java/org/gradle/apiImpl/Impl.java diff --git a/gradle-examples/4/gradle-example-ci-server/build.gradle b/gradle-examples/gradle-example-ci-server/build.gradle similarity index 100% rename from gradle-examples/4/gradle-example-ci-server/build.gradle rename to gradle-examples/gradle-example-ci-server/build.gradle diff --git a/gradle-examples/3/gradle-example-ci-server/gradle.properties b/gradle-examples/gradle-example-ci-server/gradle.properties similarity index 100% rename from gradle-examples/3/gradle-example-ci-server/gradle.properties rename to gradle-examples/gradle-example-ci-server/gradle.properties diff --git a/gradle-examples/3/gradle-android-aar/gradle/wrapper/gradle-wrapper.jar b/gradle-examples/gradle-example-ci-server/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from gradle-examples/3/gradle-android-aar/gradle/wrapper/gradle-wrapper.jar rename to gradle-examples/gradle-example-ci-server/gradle/wrapper/gradle-wrapper.jar diff --git a/gradle-examples/4/gradle-example-bintray-info/gradle/wrapper/gradle-wrapper.properties b/gradle-examples/gradle-example-ci-server/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from gradle-examples/4/gradle-example-bintray-info/gradle/wrapper/gradle-wrapper.properties rename to gradle-examples/gradle-example-ci-server/gradle/wrapper/gradle-wrapper.properties diff --git a/gradle-examples/3/gradle-example-bintray-info/gradlew b/gradle-examples/gradle-example-ci-server/gradlew similarity index 100% rename from gradle-examples/3/gradle-example-bintray-info/gradlew rename to gradle-examples/gradle-example-ci-server/gradlew diff --git a/gradle-examples/3/gradle-example-ci-server-bintray-info/gradlew.bat b/gradle-examples/gradle-example-ci-server/gradlew.bat similarity index 100% rename from gradle-examples/3/gradle-example-ci-server-bintray-info/gradlew.bat rename to gradle-examples/gradle-example-ci-server/gradlew.bat diff --git a/gradle-examples/3/gradle-example-ci-server/services/webservice/build.gradle b/gradle-examples/gradle-example-ci-server/services/webservice/build.gradle similarity index 100% rename from gradle-examples/3/gradle-example-ci-server/services/webservice/build.gradle rename to gradle-examples/gradle-example-ci-server/services/webservice/build.gradle diff --git a/gradle-examples/3/gradle-example-ci-server/services/webservice/src/main/java/org/gradle/webservice/TestTest.java b/gradle-examples/gradle-example-ci-server/services/webservice/src/main/java/org/gradle/webservice/TestTest.java similarity index 100% rename from gradle-examples/3/gradle-example-ci-server/services/webservice/src/main/java/org/gradle/webservice/TestTest.java rename to gradle-examples/gradle-example-ci-server/services/webservice/src/main/java/org/gradle/webservice/TestTest.java diff --git a/gradle-examples/3/gradle-example-ci-server-bintray-info/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java b/gradle-examples/gradle-example-ci-server/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java similarity index 100% rename from gradle-examples/3/gradle-example-ci-server-bintray-info/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java rename to gradle-examples/gradle-example-ci-server/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java diff --git a/gradle-examples/3/gradle-example-ci-server-bintray-info/settings.gradle b/gradle-examples/gradle-example-ci-server/settings.gradle similarity index 100% rename from gradle-examples/3/gradle-example-ci-server-bintray-info/settings.gradle rename to gradle-examples/gradle-example-ci-server/settings.gradle diff --git a/gradle-examples/3/gradle-example-ci-server/shared/src/main/java/org/gradle/shared/Person.java b/gradle-examples/gradle-example-ci-server/shared/src/main/java/org/gradle/shared/Person.java similarity index 100% rename from gradle-examples/3/gradle-example-ci-server/shared/src/main/java/org/gradle/shared/Person.java rename to gradle-examples/gradle-example-ci-server/shared/src/main/java/org/gradle/shared/Person.java diff --git a/gradle-examples/3/gradle-example-ci-server/shared/src/main/java/org/gradle/shared/package-info.java b/gradle-examples/gradle-example-ci-server/shared/src/main/java/org/gradle/shared/package-info.java similarity index 100% rename from gradle-examples/3/gradle-example-ci-server/shared/src/main/java/org/gradle/shared/package-info.java rename to gradle-examples/gradle-example-ci-server/shared/src/main/java/org/gradle/shared/package-info.java diff --git a/gradle-examples/3/gradle-example-ci-server/shared/src/main/resources/org/gradle/shared/main.properties b/gradle-examples/gradle-example-ci-server/shared/src/main/resources/org/gradle/shared/main.properties similarity index 100% rename from gradle-examples/3/gradle-example-ci-server/shared/src/main/resources/org/gradle/shared/main.properties rename to gradle-examples/gradle-example-ci-server/shared/src/main/resources/org/gradle/shared/main.properties diff --git a/gradle-examples/4/gradle-example-minimal/build.gradle b/gradle-examples/gradle-example-minimal/build.gradle similarity index 100% rename from gradle-examples/4/gradle-example-minimal/build.gradle rename to gradle-examples/gradle-example-minimal/build.gradle diff --git a/gradle-examples/3/gradle-example-bintray-info/gradle.properties b/gradle-examples/gradle-example-minimal/gradle.properties similarity index 100% rename from gradle-examples/3/gradle-example-bintray-info/gradle.properties rename to gradle-examples/gradle-example-minimal/gradle.properties diff --git a/gradle-examples/3/gradle-example-bintray-info/gradle/wrapper/gradle-wrapper.jar b/gradle-examples/gradle-example-minimal/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from gradle-examples/3/gradle-example-bintray-info/gradle/wrapper/gradle-wrapper.jar rename to gradle-examples/gradle-example-minimal/gradle/wrapper/gradle-wrapper.jar diff --git a/gradle-examples/4/gradle-example-minimal/gradle/wrapper/gradle-wrapper.properties b/gradle-examples/gradle-example-minimal/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from gradle-examples/4/gradle-example-minimal/gradle/wrapper/gradle-wrapper.properties rename to gradle-examples/gradle-example-minimal/gradle/wrapper/gradle-wrapper.properties diff --git a/gradle-examples/3/gradle-example-minimal/gradlew b/gradle-examples/gradle-example-minimal/gradlew similarity index 100% rename from gradle-examples/3/gradle-example-minimal/gradlew rename to gradle-examples/gradle-example-minimal/gradlew diff --git a/gradle-examples/3/gradle-example-minimal/gradlew.bat b/gradle-examples/gradle-example-minimal/gradlew.bat similarity index 100% rename from gradle-examples/3/gradle-example-minimal/gradlew.bat rename to gradle-examples/gradle-example-minimal/gradlew.bat diff --git a/gradle-examples/3/gradle-example-minimal/src/main/java/org/gradle/api/PersonList.java b/gradle-examples/gradle-example-minimal/src/main/java/org/gradle/api/PersonList.java similarity index 100% rename from gradle-examples/3/gradle-example-minimal/src/main/java/org/gradle/api/PersonList.java rename to gradle-examples/gradle-example-minimal/src/main/java/org/gradle/api/PersonList.java diff --git a/gradle-examples/3/gradle-example-ci-server-bintray-info/api/src/main/java/org/gradle/api/package.html b/gradle-examples/gradle-example-minimal/src/main/java/org/gradle/api/package.html similarity index 100% rename from gradle-examples/3/gradle-example-ci-server-bintray-info/api/src/main/java/org/gradle/api/package.html rename to gradle-examples/gradle-example-minimal/src/main/java/org/gradle/api/package.html diff --git a/gradle-examples/4/gradle-example-multi-repos/api/build.gradle b/gradle-examples/gradle-example-multi-repos/api/build.gradle similarity index 100% rename from gradle-examples/4/gradle-example-multi-repos/api/build.gradle rename to gradle-examples/gradle-example-multi-repos/api/build.gradle diff --git a/gradle-examples/3/gradle-example-publish/api/src/main/java/org/gradle/api/PersonList.java b/gradle-examples/gradle-example-multi-repos/api/src/main/java/org/gradle/api/PersonList.java similarity index 100% rename from gradle-examples/3/gradle-example-publish/api/src/main/java/org/gradle/api/PersonList.java rename to gradle-examples/gradle-example-multi-repos/api/src/main/java/org/gradle/api/PersonList.java diff --git a/gradle-examples/3/gradle-example-ci-server/api/src/main/java/org/gradle/api/package.html b/gradle-examples/gradle-example-multi-repos/api/src/main/java/org/gradle/api/package.html similarity index 100% rename from gradle-examples/3/gradle-example-ci-server/api/src/main/java/org/gradle/api/package.html rename to gradle-examples/gradle-example-multi-repos/api/src/main/java/org/gradle/api/package.html diff --git a/gradle-examples/3/gradle-example-ci-server/api/src/main/java/org/gradle/apiImpl/Impl.java b/gradle-examples/gradle-example-multi-repos/api/src/main/java/org/gradle/apiImpl/Impl.java similarity index 100% rename from gradle-examples/3/gradle-example-ci-server/api/src/main/java/org/gradle/apiImpl/Impl.java rename to gradle-examples/gradle-example-multi-repos/api/src/main/java/org/gradle/apiImpl/Impl.java diff --git a/gradle-examples/4/gradle-example-multi-repos/build.gradle b/gradle-examples/gradle-example-multi-repos/build.gradle similarity index 100% rename from gradle-examples/4/gradle-example-multi-repos/build.gradle rename to gradle-examples/gradle-example-multi-repos/build.gradle diff --git a/gradle-examples/3/gradle-example-minimal/gradle.properties b/gradle-examples/gradle-example-multi-repos/gradle.properties similarity index 100% rename from gradle-examples/3/gradle-example-minimal/gradle.properties rename to gradle-examples/gradle-example-multi-repos/gradle.properties diff --git a/gradle-examples/3/gradle-example-ci-server-bintray-info/gradle/wrapper/gradle-wrapper.jar b/gradle-examples/gradle-example-multi-repos/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from gradle-examples/3/gradle-example-ci-server-bintray-info/gradle/wrapper/gradle-wrapper.jar rename to gradle-examples/gradle-example-multi-repos/gradle/wrapper/gradle-wrapper.jar diff --git a/gradle-examples/4/gradle-example-ci-server-bintray-info/gradle/wrapper/gradle-wrapper.properties b/gradle-examples/gradle-example-multi-repos/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from gradle-examples/4/gradle-example-ci-server-bintray-info/gradle/wrapper/gradle-wrapper.properties rename to gradle-examples/gradle-example-multi-repos/gradle/wrapper/gradle-wrapper.properties diff --git a/gradle-examples/3/gradle-example-publish-bintray-info/gradlew b/gradle-examples/gradle-example-multi-repos/gradlew similarity index 100% rename from gradle-examples/3/gradle-example-publish-bintray-info/gradlew rename to gradle-examples/gradle-example-multi-repos/gradlew diff --git a/gradle-examples/3/gradle-example-publish-bintray-info/gradlew.bat b/gradle-examples/gradle-example-multi-repos/gradlew.bat similarity index 100% rename from gradle-examples/3/gradle-example-publish-bintray-info/gradlew.bat rename to gradle-examples/gradle-example-multi-repos/gradlew.bat diff --git a/gradle-examples/3/gradle-example/services/webservice/build.gradle b/gradle-examples/gradle-example-multi-repos/services/webservice/build.gradle similarity index 100% rename from gradle-examples/3/gradle-example/services/webservice/build.gradle rename to gradle-examples/gradle-example-multi-repos/services/webservice/build.gradle diff --git a/gradle-examples/3/gradle-example-publish/services/webservice/src/main/java/org/gradle/webservice/TestTest.java b/gradle-examples/gradle-example-multi-repos/services/webservice/src/main/java/org/gradle/webservice/TestTest.java similarity index 100% rename from gradle-examples/3/gradle-example-publish/services/webservice/src/main/java/org/gradle/webservice/TestTest.java rename to gradle-examples/gradle-example-multi-repos/services/webservice/src/main/java/org/gradle/webservice/TestTest.java diff --git a/gradle-examples/3/gradle-example-ci-server/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java b/gradle-examples/gradle-example-multi-repos/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java similarity index 100% rename from gradle-examples/3/gradle-example-ci-server/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java rename to gradle-examples/gradle-example-multi-repos/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java diff --git a/gradle-examples/3/gradle-example-ci-server/settings.gradle b/gradle-examples/gradle-example-multi-repos/settings.gradle similarity index 100% rename from gradle-examples/3/gradle-example-ci-server/settings.gradle rename to gradle-examples/gradle-example-multi-repos/settings.gradle diff --git a/gradle-examples/3/gradle-example-publish/shared/src/main/java/org/gradle/shared/Person.java b/gradle-examples/gradle-example-multi-repos/shared/src/main/java/org/gradle/shared/Person.java similarity index 100% rename from gradle-examples/3/gradle-example-publish/shared/src/main/java/org/gradle/shared/Person.java rename to gradle-examples/gradle-example-multi-repos/shared/src/main/java/org/gradle/shared/Person.java diff --git a/gradle-examples/3/gradle-example-publish/shared/src/main/java/org/gradle/shared/package-info.java b/gradle-examples/gradle-example-multi-repos/shared/src/main/java/org/gradle/shared/package-info.java similarity index 100% rename from gradle-examples/3/gradle-example-publish/shared/src/main/java/org/gradle/shared/package-info.java rename to gradle-examples/gradle-example-multi-repos/shared/src/main/java/org/gradle/shared/package-info.java diff --git a/gradle-examples/3/gradle-example-publish/shared/src/main/resources/org/gradle/shared/main.properties b/gradle-examples/gradle-example-multi-repos/shared/src/main/resources/org/gradle/shared/main.properties similarity index 100% rename from gradle-examples/3/gradle-example-publish/shared/src/main/resources/org/gradle/shared/main.properties rename to gradle-examples/gradle-example-multi-repos/shared/src/main/resources/org/gradle/shared/main.properties diff --git a/gradle-examples/3/gradle-example-publish/api/build.gradle b/gradle-examples/gradle-example-publish/api/build.gradle similarity index 100% rename from gradle-examples/3/gradle-example-publish/api/build.gradle rename to gradle-examples/gradle-example-publish/api/build.gradle diff --git a/gradle-examples/3/gradle-example/api/src/main/java/org/gradle/api/PersonList.java b/gradle-examples/gradle-example-publish/api/src/main/java/org/gradle/api/PersonList.java similarity index 100% rename from gradle-examples/3/gradle-example/api/src/main/java/org/gradle/api/PersonList.java rename to gradle-examples/gradle-example-publish/api/src/main/java/org/gradle/api/PersonList.java diff --git a/gradle-examples/3/gradle-example-minimal/src/main/java/org/gradle/api/package.html b/gradle-examples/gradle-example-publish/api/src/main/java/org/gradle/api/package.html similarity index 100% rename from gradle-examples/3/gradle-example-minimal/src/main/java/org/gradle/api/package.html rename to gradle-examples/gradle-example-publish/api/src/main/java/org/gradle/api/package.html diff --git a/gradle-examples/3/gradle-example-publish/api/src/main/java/org/gradle/apiImpl/Impl.java b/gradle-examples/gradle-example-publish/api/src/main/java/org/gradle/apiImpl/Impl.java similarity index 100% rename from gradle-examples/3/gradle-example-publish/api/src/main/java/org/gradle/apiImpl/Impl.java rename to gradle-examples/gradle-example-publish/api/src/main/java/org/gradle/apiImpl/Impl.java diff --git a/gradle-examples/4/gradle-example-publish/build.gradle b/gradle-examples/gradle-example-publish/build.gradle similarity index 100% rename from gradle-examples/4/gradle-example-publish/build.gradle rename to gradle-examples/gradle-example-publish/build.gradle diff --git a/gradle-examples/3/gradle-example-publish/gradle.properties b/gradle-examples/gradle-example-publish/gradle.properties similarity index 100% rename from gradle-examples/3/gradle-example-publish/gradle.properties rename to gradle-examples/gradle-example-publish/gradle.properties diff --git a/gradle-examples/3/gradle-example-ci-server/gradle/wrapper/gradle-wrapper.jar b/gradle-examples/gradle-example-publish/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from gradle-examples/3/gradle-example-ci-server/gradle/wrapper/gradle-wrapper.jar rename to gradle-examples/gradle-example-publish/gradle/wrapper/gradle-wrapper.jar diff --git a/gradle-examples/4/gradle-example-publish/gradle/wrapper/gradle-wrapper.properties b/gradle-examples/gradle-example-publish/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from gradle-examples/4/gradle-example-publish/gradle/wrapper/gradle-wrapper.properties rename to gradle-examples/gradle-example-publish/gradle/wrapper/gradle-wrapper.properties diff --git a/gradle-examples/3/gradle-example-publish/gradlew b/gradle-examples/gradle-example-publish/gradlew similarity index 100% rename from gradle-examples/3/gradle-example-publish/gradlew rename to gradle-examples/gradle-example-publish/gradlew diff --git a/gradle-examples/3/gradle-example-publish/gradlew.bat b/gradle-examples/gradle-example-publish/gradlew.bat similarity index 100% rename from gradle-examples/3/gradle-example-publish/gradlew.bat rename to gradle-examples/gradle-example-publish/gradlew.bat diff --git a/gradle-examples/4/gradle-cache-example/services/webservice/build.gradle b/gradle-examples/gradle-example-publish/services/webservice/build.gradle similarity index 100% rename from gradle-examples/4/gradle-cache-example/services/webservice/build.gradle rename to gradle-examples/gradle-example-publish/services/webservice/build.gradle diff --git a/gradle-examples/3/gradle-example/services/webservice/src/main/java/org/gradle/webservice/TestTest.java b/gradle-examples/gradle-example-publish/services/webservice/src/main/java/org/gradle/webservice/TestTest.java similarity index 100% rename from gradle-examples/3/gradle-example/services/webservice/src/main/java/org/gradle/webservice/TestTest.java rename to gradle-examples/gradle-example-publish/services/webservice/src/main/java/org/gradle/webservice/TestTest.java diff --git a/gradle-examples/3/gradle-example-publish/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java b/gradle-examples/gradle-example-publish/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java similarity index 100% rename from gradle-examples/3/gradle-example-publish/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java rename to gradle-examples/gradle-example-publish/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java diff --git a/gradle-examples/3/gradle-example-publish/settings.gradle b/gradle-examples/gradle-example-publish/settings.gradle similarity index 100% rename from gradle-examples/3/gradle-example-publish/settings.gradle rename to gradle-examples/gradle-example-publish/settings.gradle diff --git a/gradle-examples/3/gradle-example/shared/src/main/java/org/gradle/shared/Person.java b/gradle-examples/gradle-example-publish/shared/src/main/java/org/gradle/shared/Person.java similarity index 100% rename from gradle-examples/3/gradle-example/shared/src/main/java/org/gradle/shared/Person.java rename to gradle-examples/gradle-example-publish/shared/src/main/java/org/gradle/shared/Person.java diff --git a/gradle-examples/3/gradle-example/shared/src/main/java/org/gradle/shared/package-info.java b/gradle-examples/gradle-example-publish/shared/src/main/java/org/gradle/shared/package-info.java similarity index 100% rename from gradle-examples/3/gradle-example/shared/src/main/java/org/gradle/shared/package-info.java rename to gradle-examples/gradle-example-publish/shared/src/main/java/org/gradle/shared/package-info.java diff --git a/gradle-examples/3/gradle-example/shared/src/main/resources/org/gradle/shared/main.properties b/gradle-examples/gradle-example-publish/shared/src/main/resources/org/gradle/shared/main.properties similarity index 100% rename from gradle-examples/3/gradle-example/shared/src/main/resources/org/gradle/shared/main.properties rename to gradle-examples/gradle-example-publish/shared/src/main/resources/org/gradle/shared/main.properties diff --git a/gradle-examples/3/gradle-example/api/build.gradle b/gradle-examples/gradle-example/api/build.gradle similarity index 100% rename from gradle-examples/3/gradle-example/api/build.gradle rename to gradle-examples/gradle-example/api/build.gradle diff --git a/gradle-examples/4/gradle-cache-example/api/src/main/java/org/gradle/api/PersonList.java b/gradle-examples/gradle-example/api/src/main/java/org/gradle/api/PersonList.java similarity index 100% rename from gradle-examples/4/gradle-cache-example/api/src/main/java/org/gradle/api/PersonList.java rename to gradle-examples/gradle-example/api/src/main/java/org/gradle/api/PersonList.java diff --git a/gradle-examples/3/gradle-example-publish-bintray-info/src/main/java/org/gradle/api/package.html b/gradle-examples/gradle-example/api/src/main/java/org/gradle/api/package.html similarity index 100% rename from gradle-examples/3/gradle-example-publish-bintray-info/src/main/java/org/gradle/api/package.html rename to gradle-examples/gradle-example/api/src/main/java/org/gradle/api/package.html diff --git a/gradle-examples/3/gradle-example/api/src/main/java/org/gradle/apiImpl/Impl.java b/gradle-examples/gradle-example/api/src/main/java/org/gradle/apiImpl/Impl.java similarity index 100% rename from gradle-examples/3/gradle-example/api/src/main/java/org/gradle/apiImpl/Impl.java rename to gradle-examples/gradle-example/api/src/main/java/org/gradle/apiImpl/Impl.java diff --git a/gradle-examples/4/gradle-example/build.gradle b/gradle-examples/gradle-example/build.gradle similarity index 100% rename from gradle-examples/4/gradle-example/build.gradle rename to gradle-examples/gradle-example/build.gradle diff --git a/gradle-examples/3/gradle-example/gradle.properties b/gradle-examples/gradle-example/gradle.properties similarity index 100% rename from gradle-examples/3/gradle-example/gradle.properties rename to gradle-examples/gradle-example/gradle.properties diff --git a/gradle-examples/3/gradle-example-minimal/gradle/wrapper/gradle-wrapper.jar b/gradle-examples/gradle-example/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from gradle-examples/3/gradle-example-minimal/gradle/wrapper/gradle-wrapper.jar rename to gradle-examples/gradle-example/gradle/wrapper/gradle-wrapper.jar diff --git a/gradle-examples/4/gradle-example-ci-server/gradle/wrapper/gradle-wrapper.properties b/gradle-examples/gradle-example/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from gradle-examples/4/gradle-example-ci-server/gradle/wrapper/gradle-wrapper.properties rename to gradle-examples/gradle-example/gradle/wrapper/gradle-wrapper.properties diff --git a/gradle-examples/3/gradle-example-ci-server-bintray-info/gradlew b/gradle-examples/gradle-example/gradlew similarity index 100% rename from gradle-examples/3/gradle-example-ci-server-bintray-info/gradlew rename to gradle-examples/gradle-example/gradlew diff --git a/gradle-examples/3/gradle-example-ci-server/gradlew.bat b/gradle-examples/gradle-example/gradlew.bat similarity index 100% rename from gradle-examples/3/gradle-example-ci-server/gradlew.bat rename to gradle-examples/gradle-example/gradlew.bat diff --git a/gradle-examples/3/gradle-example/init.gradle b/gradle-examples/gradle-example/init.gradle similarity index 100% rename from gradle-examples/3/gradle-example/init.gradle rename to gradle-examples/gradle-example/init.gradle diff --git a/gradle-examples/4/gradle-example-multi-repos/services/webservice/build.gradle b/gradle-examples/gradle-example/services/webservice/build.gradle similarity index 100% rename from gradle-examples/4/gradle-example-multi-repos/services/webservice/build.gradle rename to gradle-examples/gradle-example/services/webservice/build.gradle diff --git a/gradle-examples/4/gradle-cache-example/services/webservice/src/main/java/org/gradle/webservice/TestTest.java b/gradle-examples/gradle-example/services/webservice/src/main/java/org/gradle/webservice/TestTest.java similarity index 100% rename from gradle-examples/4/gradle-cache-example/services/webservice/src/main/java/org/gradle/webservice/TestTest.java rename to gradle-examples/gradle-example/services/webservice/src/main/java/org/gradle/webservice/TestTest.java diff --git a/gradle-examples/3/gradle-example/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java b/gradle-examples/gradle-example/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java similarity index 100% rename from gradle-examples/3/gradle-example/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java rename to gradle-examples/gradle-example/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java diff --git a/gradle-examples/3/gradle-example/settings.gradle b/gradle-examples/gradle-example/settings.gradle similarity index 100% rename from gradle-examples/3/gradle-example/settings.gradle rename to gradle-examples/gradle-example/settings.gradle diff --git a/gradle-examples/4/gradle-cache-example/shared/src/main/java/org/gradle/shared/Person.java b/gradle-examples/gradle-example/shared/src/main/java/org/gradle/shared/Person.java similarity index 100% rename from gradle-examples/4/gradle-cache-example/shared/src/main/java/org/gradle/shared/Person.java rename to gradle-examples/gradle-example/shared/src/main/java/org/gradle/shared/Person.java diff --git a/gradle-examples/4/gradle-cache-example/shared/src/main/java/org/gradle/shared/package-info.java b/gradle-examples/gradle-example/shared/src/main/java/org/gradle/shared/package-info.java similarity index 100% rename from gradle-examples/4/gradle-cache-example/shared/src/main/java/org/gradle/shared/package-info.java rename to gradle-examples/gradle-example/shared/src/main/java/org/gradle/shared/package-info.java diff --git a/gradle-examples/4/gradle-cache-example/shared/src/main/resources/org/gradle/shared/main.properties b/gradle-examples/gradle-example/shared/src/main/resources/org/gradle/shared/main.properties similarity index 100% rename from gradle-examples/4/gradle-cache-example/shared/src/main/resources/org/gradle/shared/main.properties rename to gradle-examples/gradle-example/shared/src/main/resources/org/gradle/shared/main.properties diff --git a/gradle-examples/3/gradle-jcenter-resolve/build.gradle b/gradle-examples/gradle-jcenter-resolve/build.gradle similarity index 100% rename from gradle-examples/3/gradle-jcenter-resolve/build.gradle rename to gradle-examples/gradle-jcenter-resolve/build.gradle diff --git a/gradle-examples/3/gradle-example-publish-bintray-info/gradle/wrapper/gradle-wrapper.jar b/gradle-examples/gradle-jcenter-resolve/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from gradle-examples/3/gradle-example-publish-bintray-info/gradle/wrapper/gradle-wrapper.jar rename to gradle-examples/gradle-jcenter-resolve/gradle/wrapper/gradle-wrapper.jar diff --git a/gradle-examples/4/gradle-jcenter-resolve/gradle/wrapper/gradle-wrapper.properties b/gradle-examples/gradle-jcenter-resolve/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from gradle-examples/4/gradle-jcenter-resolve/gradle/wrapper/gradle-wrapper.properties rename to gradle-examples/gradle-jcenter-resolve/gradle/wrapper/gradle-wrapper.properties diff --git a/gradle-examples/3/gradle-jcenter-resolve/src/main/java/HelloWorld.java b/gradle-examples/gradle-jcenter-resolve/src/main/java/HelloWorld.java similarity index 100% rename from gradle-examples/3/gradle-jcenter-resolve/src/main/java/HelloWorld.java rename to gradle-examples/gradle-jcenter-resolve/src/main/java/HelloWorld.java