These are the API classes
19 | 20 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-ci-server/api/src/main/java/org/gradle/apiImpl/Impl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 JFrog Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.gradle.apiImpl; 18 | 19 | 20 | public class Impl { 21 | 22 | public void implMethod() { 23 | double a = 4.0 * 4; 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-ci-server/build.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2013 JFrog Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | allprojects { 18 | apply plugin: 'java' 19 | apply plugin: 'maven-publish' 20 | 21 | group = 'org.jfrog.example.gradle' 22 | version = '1.0' 23 | status = 'integration' 24 | 25 | repositories { 26 | mavenCentral() 27 | } 28 | } 29 | 30 | // Setting this property to true will make the artifactoryPublish task 31 | // skip this module (in our case, the root module): 32 | artifactoryPublish.skip = true 33 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-ci-server/gradle.properties: -------------------------------------------------------------------------------- 1 | currentVersion=2.3-SNAPSHOT 2 | artifactory_password=password 3 | artifactory_user=admin 4 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-ci-server/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfrog/project-examples/36e011d98fc931d1d2e954f7cd4323652f91810a/gradle-examples/gradle-example-ci-server/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle-examples/gradle-example-ci-server/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-ci-server/services/webservice/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'war' 2 | 3 | dependencies { 4 | implementation project(':shared'), 'commons-collections:commons-collections:3.2@jar', 'commons-io:commons-io:1.2', 'commons-lang:commons-lang:2.4@jar' 5 | implementation group: 'org.apache.wicket', name: 'wicket', version: '1.3.7' 6 | implementation group: 'junit', name: 'junit', version: '4.11' 7 | implementation project(':api') 8 | } 9 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-ci-server/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2007 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package org.gradle.webservice; 17 | 18 | import junit.framework.TestCase; 19 | 20 | /** 21 | * @author Hans Dockter 22 | */ 23 | public class TestTestTest extends TestCase { 24 | public void testClasspath() { 25 | new TestTest().method(); 26 | } 27 | 28 | public void testApiCompileClasspath() { 29 | new org.gradle.api.PersonList(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-ci-server/settings.gradle: -------------------------------------------------------------------------------- 1 | include "shared", "api", "services:webservice" 2 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-ci-server/shared/src/main/java/org/gradle/shared/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 JFrog Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * These are the shared classes. 19 | */ 20 | package org.gradle.shared; 21 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-ci-server/shared/src/main/resources/org/gradle/shared/main.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011 JFrog Ltd. 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | main=mainValue 18 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-minimal/gradle.properties: -------------------------------------------------------------------------------- 1 | currentVersion=1.0-SNAPSHOT 2 | artifactory_user=admin 3 | artifactory_password=password 4 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-minimal/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfrog/project-examples/36e011d98fc931d1d2e954f7cd4323652f91810a/gradle-examples/gradle-example-minimal/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle-examples/gradle-example-minimal/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-minimal/src/main/java/org/gradle/api/PersonList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 JFrog Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.gradle.api; 18 | 19 | import java.util.Date; 20 | 21 | public class PersonList { 22 | private Date date = null; 23 | 24 | public void doSomething() { 25 | date = new Date(); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-minimal/src/main/java/org/gradle/api/package.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 |These are the API classes
19 | 20 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-multi-repos/api/src/main/java/org/gradle/api/package.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 |These are the API classes
19 | 20 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-multi-repos/api/src/main/java/org/gradle/apiImpl/Impl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 JFrog Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.gradle.apiImpl; 18 | 19 | 20 | public class Impl { 21 | 22 | public void implMethod() { 23 | double a = 4.0 * 4; 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-multi-repos/gradle.properties: -------------------------------------------------------------------------------- 1 | currentVersion=1.0-SNAPSHOT 2 | artifactory_user=admin 3 | artifactory_password=password 4 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-multi-repos/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfrog/project-examples/36e011d98fc931d1d2e954f7cd4323652f91810a/gradle-examples/gradle-example-multi-repos/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle-examples/gradle-example-multi-repos/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-multi-repos/services/build/moduleInfo.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : "gradle", 3 | "id" : "org.jfrog.test.gradle.publish:services:1.0-SNAPSHOT", 4 | "repository" : "", 5 | "artifacts" : [ ], 6 | "excludedArtifacts" : [ ], 7 | "dependencies" : [ ] 8 | } -------------------------------------------------------------------------------- /gradle-examples/gradle-example-multi-repos/services/webservice/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'war' 2 | 3 | dependencies { 4 | implementation project(':shared'), 'commons-collections:commons-collections:3.2@jar', 'commons-io:commons-io:1.2', 'commons-lang:commons-lang:2.4@jar' 5 | implementation group: 'org.apache.wicket', name: 'wicket', version: '1.3.7' 6 | implementation project(':api') 7 | } 8 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-multi-repos/settings.gradle: -------------------------------------------------------------------------------- 1 | include "shared", "api", "services:webservice" 2 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-multi-repos/shared/src/main/java/org/gradle/shared/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 JFrog Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * These are the shared classes. 19 | */ 20 | package org.gradle.shared; 21 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-multi-repos/shared/src/main/resources/org/gradle/shared/main.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011 JFrog Ltd. 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | main=mainValue 18 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-publish/api/build.gradle: -------------------------------------------------------------------------------- 1 | configurations { 2 | spi 3 | } 4 | 5 | dependencies { 6 | implementation project(':shared') 7 | implementation module("commons-lang:commons-lang:2.4") { 8 | dependency("commons-io:commons-io:1.2") 9 | } 10 | implementation group: 'org.apache.wicket', name: 'wicket', version: '1.3.7' 11 | 12 | } 13 | 14 | // Just a smoke test that using this option does not lead to any exception 15 | compileJava.options.compilerArgs = ['-Xlint:unchecked'] 16 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-publish/api/src/main/java/org/gradle/api/package.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 |These are the API classes
19 | 20 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-publish/api/src/main/java/org/gradle/apiImpl/Impl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 JFrog Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.gradle.apiImpl; 18 | 19 | 20 | public class Impl { 21 | 22 | public void implMethod() { 23 | double a = 4.0 * 4; 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-publish/gradle.properties: -------------------------------------------------------------------------------- 1 | currentVersion=1.0-SNAPSHOT 2 | artifactory_user=admin 3 | artifactory_password=password 4 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-publish/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfrog/project-examples/36e011d98fc931d1d2e954f7cd4323652f91810a/gradle-examples/gradle-example-publish/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle-examples/gradle-example-publish/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-publish/services/webservice/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'war' 2 | 3 | dependencies { 4 | implementation project(':shared'), 'commons-collections:commons-collections:3.2@jar', 'commons-io:commons-io:1.2', 'commons-lang:commons-lang:2.4@jar' 5 | implementation group: 'org.apache.wicket', name: 'wicket', version: '1.3.7' 6 | implementation project(':api') 7 | } 8 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-publish/settings.gradle: -------------------------------------------------------------------------------- 1 | include "shared", "api", "services:webservice" 2 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-publish/shared/src/main/java/org/gradle/shared/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 JFrog Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * These are the shared classes. 19 | */ 20 | package org.gradle.shared; 21 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-publish/shared/src/main/resources/org/gradle/shared/main.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011 JFrog Ltd. 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | main=mainValue 18 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-version-catalog/version-catalog-consumer/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'version-catalog' 3 | id 'maven-publish' 4 | id 'application' 5 | } 6 | 7 | group = 'com.jfrog' 8 | version = '1.0.0' 9 | dependencies { 10 | implementation libs.commons.lang3 11 | } 12 | 13 | publishing { 14 | publications { 15 | mavenJava(MavenPublication) { 16 | from components.java 17 | artifactId = 'gradle-version-catalog-consumer' 18 | } 19 | } 20 | } 21 | 22 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-version-catalog/version-catalog-consumer/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfrog/project-examples/36e011d98fc931d1d2e954f7cd4323652f91810a/gradle-examples/gradle-example-version-catalog/version-catalog-consumer/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle-examples/gradle-example-version-catalog/version-catalog-consumer/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip 4 | networkTimeout=10000 5 | zipStoreBase=GRADLE_USER_HOME 6 | zipStorePath=wrapper/dists 7 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-version-catalog/version-catalog-consumer/settings.gradle: -------------------------------------------------------------------------------- 1 | dependencyResolutionManagement { 2 | versionCatalogs { 3 | libs { 4 | // Use gradle-version-catalog from JFrog Artifactory 5 | from("com.jfrog:gradle-version-catalog:1.0.0") 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-version-catalog/version-catalog-consumer/src/main/Main.java: -------------------------------------------------------------------------------- 1 | package com.jfrog.main; 2 | 3 | import org.apache.commons.lang3.StringUtils; 4 | 5 | public class Main { 6 | public static void main(String[] args) { 7 | System.out.println(StringUtils.isBlank("")); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-version-catalog/version-catalog-producer/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'version-catalog' 3 | id 'maven-publish' 4 | id 'java-platform' 5 | } 6 | 7 | group = 'com.jfrog' 8 | version = '1.0.0' 9 | catalog { 10 | versionCatalog { 11 | library('commons-lang3', 'org.apache.commons:commons-lang3:3.9') 12 | } 13 | } 14 | 15 | publishing { 16 | publications { 17 | mavenJava(MavenPublication) { 18 | from components.versionCatalog 19 | artifactId = 'gradle-version-catalog' 20 | } 21 | } 22 | } 23 | 24 | -------------------------------------------------------------------------------- /gradle-examples/gradle-example-version-catalog/version-catalog-producer/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfrog/project-examples/36e011d98fc931d1d2e954f7cd4323652f91810a/gradle-examples/gradle-example-version-catalog/version-catalog-producer/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle-examples/gradle-example-version-catalog/version-catalog-producer/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip 4 | networkTimeout=10000 5 | zipStoreBase=GRADLE_USER_HOME 6 | zipStorePath=wrapper/dists 7 | -------------------------------------------------------------------------------- /gradle-examples/gradle-kts-example-publish/api/build.gradle.kts: -------------------------------------------------------------------------------- 1 | val spi: Configuration by configurations.creating 2 | 3 | dependencies { 4 | implementation(project(":shared")) 5 | implementation("commons-lang:commons-lang:2.4") 6 | implementation("commons-io:commons-io:1.2") 7 | implementation("org.apache.wicket", "wicket", "1.3.7") 8 | } 9 | 10 | // Just a smoke test that using this option does not lead to any exception 11 | tasks { 12 | namedThese are the API classes
19 | 20 | -------------------------------------------------------------------------------- /gradle-examples/gradle-kts-example-publish/api/src/main/java/org/gradle/apiImpl/Impl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 JFrog Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.gradle.apiImpl; 18 | 19 | 20 | public class Impl { 21 | 22 | public void implMethod() { 23 | double a = 4.0 * 4; 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /gradle-examples/gradle-kts-example-publish/gradle.properties: -------------------------------------------------------------------------------- 1 | currentVersion=1.0-SNAPSHOT 2 | artifactory_user=admin 3 | artifactory_password=password 4 | -------------------------------------------------------------------------------- /gradle-examples/gradle-kts-example-publish/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfrog/project-examples/36e011d98fc931d1d2e954f7cd4323652f91810a/gradle-examples/gradle-kts-example-publish/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle-examples/gradle-kts-example-publish/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /gradle-examples/gradle-kts-example-publish/services/webservice/build.gradle.kts: -------------------------------------------------------------------------------- 1 | plugins { 2 | war 3 | } 4 | 5 | dependencies { 6 | implementation(project(":shared")) 7 | implementation("commons-collections:commons-collections:3.2@jar") 8 | implementation("commons-io:commons-io:1.2") 9 | implementation("commons-lang:commons-lang:2.4@jar") 10 | implementation("org.apache.wicket", "wicket", "1.3.7") 11 | implementation(project(":api")) 12 | } 13 | -------------------------------------------------------------------------------- /gradle-examples/gradle-kts-example-publish/settings.gradle.kts: -------------------------------------------------------------------------------- 1 | include("shared", "api", "services:webservice") -------------------------------------------------------------------------------- /gradle-examples/gradle-kts-example-publish/shared/src/main/java/org/gradle/shared/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 JFrog Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * These are the shared classes. 19 | */ 20 | package org.gradle.shared; 21 | -------------------------------------------------------------------------------- /gradle-examples/gradle-kts-example-publish/shared/src/main/resources/org/gradle/shared/main.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011 JFrog Ltd. 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | main=mainValue 18 | -------------------------------------------------------------------------------- /ivy-example/projects/console/build.xml: -------------------------------------------------------------------------------- 1 | 19 |These are the API classes
19 | 20 | -------------------------------------------------------------------------------- /kubernetes-example/gradle-example/api/src/main/java/org/gradle/apiImpl/Impl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 JFrog Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.gradle.apiImpl; 18 | 19 | 20 | public class Impl { 21 | 22 | public void implMethod() { 23 | double a = 4.0 * 4; 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /kubernetes-example/gradle-example/gradle.properties: -------------------------------------------------------------------------------- 1 | currentVersion=1.1.2 2 | artifactory_password=password 3 | artifactory_user=admin 4 | -------------------------------------------------------------------------------- /kubernetes-example/gradle-example/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfrog/project-examples/36e011d98fc931d1d2e954f7cd4323652f91810a/kubernetes-example/gradle-example/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /kubernetes-example/gradle-example/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Jul 20 09:52:53 IDT 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.0-bin.zip 7 | -------------------------------------------------------------------------------- /kubernetes-example/gradle-example/increment.sh: -------------------------------------------------------------------------------- 1 | if sed --version 2 | then sed -r 's/(currentVersion)=([0-9]+).([0-9]+).([0-9]+)/echo "\1=\2.\3.$BUILD_NUMBER"/e' gradle.properties -i 3 | else gsed -r 's/(currentVersion)=([0-9]+).([0-9]+).([0-9]+)/echo "\1=\2.\3.$BUILD_NUMBER"/e' gradle.properties -i 4 | fi 5 | -------------------------------------------------------------------------------- /kubernetes-example/gradle-example/services/webservice/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'war' 2 | 3 | dependencies { 4 | implementation project(':shared'), 'commons-collections:commons-collections:3.2@jar', 'commons-io:commons-io:1.2', 'commons-lang:commons-lang:2.4@jar' 5 | implementation group: 'org.apache.wicket', name: 'wicket', version: '1.3.7' 6 | implementation group: 'org.apache.struts', name: 'struts2-core', version: '2.3.14' 7 | implementation group: 'junit', name: 'junit', version: '4.11' 8 | implementation project(':api') 9 | } 10 | -------------------------------------------------------------------------------- /kubernetes-example/gradle-example/services/webservice/src/main/webapp/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfrog/project-examples/36e011d98fc931d1d2e954f7cd4323652f91810a/kubernetes-example/gradle-example/services/webservice/src/main/webapp/images/logo.png -------------------------------------------------------------------------------- /kubernetes-example/gradle-example/services/webservice/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
10 | ![]() |
12 |
13 | Welcome Docker Lifecycle Training14 | |
15 |
Be prepare to be amazed!
19 |Instructor: Jainish Shah
20 | 21 | 22 | -------------------------------------------------------------------------------- /kubernetes-example/gradle-example/services/webservice/src/test/java/org/gradle/webservice/TestTestTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2007 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package org.gradle.webservice; 17 | 18 | import junit.framework.TestCase; 19 | 20 | /** 21 | * @author Hans Dockter 22 | */ 23 | public class TestTestTest extends TestCase { 24 | public void testClasspath() { 25 | new TestTest().method(); 26 | } 27 | 28 | public void testApiCompileClasspath() { 29 | new org.gradle.api.PersonList(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /kubernetes-example/gradle-example/settings.gradle: -------------------------------------------------------------------------------- 1 | include "shared", "api", "services:webservice" 2 | -------------------------------------------------------------------------------- /kubernetes-example/gradle-example/shared/src/main/java/org/gradle/shared/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 JFrog Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * These are the shared classes. 19 | */ 20 | package org.gradle.shared; 21 | -------------------------------------------------------------------------------- /kubernetes-example/gradle-example/shared/src/main/resources/org/gradle/shared/main.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011 JFrog Ltd. 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | main=mainValue 18 | -------------------------------------------------------------------------------- /kubernetes-example/images/Add_Artifactory_Server.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfrog/project-examples/36e011d98fc931d1d2e954f7cd4323652f91810a/kubernetes-example/images/Add_Artifactory_Server.png -------------------------------------------------------------------------------- /kubernetes-example/images/Add_Credentials.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfrog/project-examples/36e011d98fc931d1d2e954f7cd4323652f91810a/kubernetes-example/images/Add_Credentials.png -------------------------------------------------------------------------------- /kubernetes-example/images/configure_docker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfrog/project-examples/36e011d98fc931d1d2e954f7cd4323652f91810a/kubernetes-example/images/configure_docker.png -------------------------------------------------------------------------------- /maven-examples/maven-example/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfrog/project-examples/36e011d98fc931d1d2e954f7cd4323652f91810a/maven-examples/maven-example/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /maven-examples/maven-example/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar 3 | -------------------------------------------------------------------------------- /maven-examples/maven-example/multi1/src/main/java/artifactory/test/Multi1.java: -------------------------------------------------------------------------------- 1 | package artifactory.test; 2 | 3 | /** 4 | * Hello world! 5 | */ 6 | public class Multi1 { 7 | public static void main(String[] args) { 8 | System.out.println("Hello World!"); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /maven-examples/maven-example/multi1/src/test/java/artifactory/test/AppTest.java: -------------------------------------------------------------------------------- 1 | package artifactory.test; 2 | 3 | import junit.framework.Test; 4 | import junit.framework.TestCase; 5 | import junit.framework.TestSuite; 6 | 7 | /** 8 | * Unit test for simple App. 9 | */ 10 | public class AppTest 11 | extends TestCase 12 | { 13 | /** 14 | * Create the test case 15 | * 16 | * @param testName name of the test case 17 | */ 18 | public AppTest( String testName ) 19 | { 20 | super( testName ); 21 | } 22 | 23 | /** 24 | * @return the suite of tests being tested 25 | */ 26 | public static Test suite() 27 | { 28 | return new TestSuite( AppTest.class ); 29 | } 30 | 31 | /** 32 | * Rigourous Test :-) 33 | */ 34 | public void testApp() 35 | { 36 | assertTrue( true ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /maven-examples/maven-example/multi2/pom.xml: -------------------------------------------------------------------------------- 1 | 2 |14 | @Html.ActionLink("Help Page Home", "Index") 15 |
16 |Sample not available.
13 | } -------------------------------------------------------------------------------- /msbuild-plugin-example/ArtifactoryDemo.Web/Areas/HelpPage/Views/Help/DisplayTemplates/Samples.cshtml: -------------------------------------------------------------------------------- 1 | @using System.Net.Http.Headers 2 | @model DictionarySample not available.
22 | } 23 | else 24 | { 25 | @Html.DisplayFor(s => sample); 26 | } 27 | } 28 |5 | @Model.Text 6 |-------------------------------------------------------------------------------- /msbuild-plugin-example/ArtifactoryDemo.Web/Areas/HelpPage/Views/Shared/_Layout.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |