-
Notifications
You must be signed in to change notification settings - Fork 40
Updated gradle-dep-tree plugin and added support included builds #611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from 6 commits
f43de92
47f7fa5
074fcec
559a1a8
da36f62
22ff97f
cd96fe2
35dd086
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -163,7 +163,8 @@ func (gdt *gradleDepTreeManager) execGradleDepTree(depTreeDir string) (outputFil | |
| "-q", | ||
| gradleNoCacheFlag, | ||
| fmt.Sprintf("-Dcom.jfrog.depsTreeOutputFile=%s", outputFilePath), | ||
| "-Dcom.jfrog.includeAllBuildFiles=true"} | ||
| "-Dcom.jfrog.includeAllBuildFiles=true", | ||
| fmt.Sprintf("-Dcom.jfrog.includeIncludedBuilds=%t", gdt.useIncludedBuilds)} | ||
|
Comment on lines
+166
to
+167
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are no issue using both flags, right?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You mean 'includeAllBuildFiles' and 'includeIncludedBuilds' ? They're not exactly related, 'includeAllBuildFiles' was already present before my change. It's used for for the gradle subprojects not for gradle included builds |
||
|
|
||
| // Add curation audit mode for pass-through functionality if this is a curation command | ||
| if gdt.isCurationCmd { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= | ||
| rsc.io/quote v1.5.2/go.mod h1:LzX7hefJvL54yjefDEDHNONDjII0t9xZLPXsUe+TKr0= | ||
| rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| version: 1 | ||
| type: gradle | ||
| usePlugin: true | ||
| useWrapper: true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| configurations { | ||
| spi | ||
| } | ||
|
|
||
| buildscript { | ||
| repositories { | ||
| mavenCentral() | ||
| } | ||
| dependencies { | ||
| classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '4+') | ||
| } | ||
| configurations.classpath { | ||
| resolutionStrategy { | ||
| cacheDynamicVersionsFor 0, 'seconds' | ||
| cacheChangingModulesFor 0, 'seconds' | ||
| } | ||
| } | ||
| } | ||
|
|
||
| apply plugin: 'com.jfrog.artifactory' | ||
| group = 'org.jfrog.test.gradle.publish' | ||
| version = currentVersion | ||
| status = 'Integration' | ||
| repositories { | ||
| mavenCentral() | ||
| } | ||
|
|
||
| apply plugin: 'java' | ||
| apply plugin: 'maven-publish' | ||
|
|
||
| dependencies { | ||
| testImplementation 'junit:junit:4.7' | ||
| } | ||
|
|
||
| publishing { | ||
| publications { | ||
| mavenJava(MavenPublication) { | ||
| from components.java | ||
| artifact(file("$rootDir/gradle.properties")) | ||
| } | ||
| } | ||
| } | ||
|
|
||
| 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' | ||
| } | ||
| } | ||
|
|
||
| dependencies { | ||
| implementation project(':shared') | ||
| implementation module("commons-lang:commons-lang:2.4") { | ||
| dependency("commons-io:commons-io:1.2") | ||
| } | ||
| implementation 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'] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| currentVersion=1.0-SNAPSHOT | ||
| artifactory_user=admin | ||
| artifactory_password=password |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| rootProject.name = 'api' | ||
| //include 'proj' | ||
|
|
||
| include ':shared' | ||
| project(':shared').projectDir=file("$rootDir/../shared") |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| /* | ||
| * 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<Person> persons = new ArrayList<Person>(); | ||
|
|
||
| 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(); | ||
| } | ||
|
|
||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make sure to define the flag and assign it to the related command (similar to other flags in the file)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added it to the 'flagsMap'