Skip to content

Commit

Permalink
avoid using mavenLocal() in devtools/gradle-it
Browse files Browse the repository at this point in the history
see details for why in #1926

related to #1623
  • Loading branch information
vorburger committed Apr 10, 2019
1 parent f85af83 commit 7b10013
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 3 deletions.
5 changes: 2 additions & 3 deletions devtools/gradle-it/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
pluginManagement {
repositories {
mavenLocal()

// target/dependencies is missing quarkus-gradle-plugin's dependencies; we need latest transitive dependencies from local SNAPSHOTs too:
maven { url '../gradle/target/quarkus-gradle-plugin-999-SNAPSHOT/quarkus-gradle-plugin-999-SNAPSHOT/' }
maven { url '../gradle/target/dependencies/' }
mavenCentral()
}
resolutionStrategy {
Expand Down
19 changes: 19 additions & 0 deletions devtools/gradle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,25 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/assembly/copy.xml</descriptor>
</descriptors>
<attach>false</attach>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
<executions>
<execution>
<id>create-repo</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
Expand Down
18 changes: 18 additions & 0 deletions devtools/gradle/src/assembly/copy.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<assembly>
<id>repo</id>
<formats>
<format>dir</format>
</formats>
<files>
<file>
<source>${basedir}/build/libs/${project.artifactId}-${project.version}.jar</source>
<outputDirectory>io/quarkus/quarkus-gradle-plugin/999-SNAPSHOT/</outputDirectory>
</file>
<file>
<source>pom.xml</source>
<outputDirectory>io/quarkus/quarkus-gradle-plugin/999-SNAPSHOT/</outputDirectory>
<destName>quarkus-gradle-plugin-999-SNAPSHOT.pom</destName>
</file>
</files>
</assembly>

0 comments on commit 7b10013

Please sign in to comment.