-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First step to extract Maven-specific parts from the bootstrap core
- Loading branch information
1 parent
bf97e2e
commit c4d88a3
Showing
94 changed files
with
385 additions
and
855 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<parent> | ||
<artifactId>quarkus-bootstrap-parent</artifactId> | ||
<groupId>io.quarkus</groupId> | ||
<version>999-SNAPSHOT</version> | ||
<relativePath>../pom.xml</relativePath> | ||
</parent> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<artifactId>quarkus-bootstrap-app-model</artifactId> | ||
<name>Quarkus - Bootstrap - App Model</name> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.jboss.logging</groupId> | ||
<artifactId>jboss-logging</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.jboss.logging</groupId> | ||
<artifactId>commons-logging-jboss-logging</artifactId> | ||
<scope>runtime</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
</project> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions
16
...ootstrap/app-model/src/main/java/io/quarkus/bootstrap/resolver/workspace/BuildOutput.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package io.quarkus.bootstrap.resolver.workspace; | ||
|
||
import io.quarkus.bootstrap.model.PathsCollection; | ||
import java.nio.file.Path; | ||
|
||
/** | ||
* Represents an outcome of the build for a specific set of sources and resources. | ||
*/ | ||
public interface BuildOutput { | ||
|
||
Path getOutputDir(); | ||
|
||
PathsCollection getSourcesDirs(); | ||
|
||
PathsCollection getResourcesDirs(); | ||
} |
15 changes: 15 additions & 0 deletions
15
.../bootstrap/app-model/src/main/java/io/quarkus/bootstrap/resolver/workspace/Workspace.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package io.quarkus.bootstrap.resolver.workspace; | ||
|
||
import io.quarkus.bootstrap.model.AppArtifactKey; | ||
import java.util.Collection; | ||
|
||
public interface Workspace<M extends WorkspaceProject> { | ||
|
||
default M getProject(String groupId, String artifactId) { | ||
return getProject(new AppArtifactKey(groupId, artifactId)); | ||
} | ||
|
||
M getProject(AppArtifactKey key); | ||
|
||
Collection<M> getAllProjects(); | ||
} |
56 changes: 56 additions & 0 deletions
56
...rap/app-model/src/main/java/io/quarkus/bootstrap/resolver/workspace/WorkspaceProject.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package io.quarkus.bootstrap.resolver.workspace; | ||
|
||
import io.quarkus.bootstrap.model.AppArtifact; | ||
import io.quarkus.bootstrap.model.AppArtifactKey; | ||
import java.nio.file.Path; | ||
import java.util.Collection; | ||
|
||
/** | ||
* Represents a project in a workspace | ||
*/ | ||
public interface WorkspaceProject { | ||
|
||
String getGroupId(); | ||
|
||
String getArtifactId(); | ||
|
||
String getVersion(); | ||
|
||
/** | ||
* Project location on the filesystem | ||
* | ||
* @return project location | ||
*/ | ||
Path getDir(); | ||
|
||
/** | ||
* Project's key consisting of its group and artifact IDs | ||
* | ||
* @return project's key | ||
*/ | ||
AppArtifactKey getKey(); | ||
|
||
/** | ||
* Where the main build output can be located and from which | ||
* sources and resources it was produced | ||
* | ||
* @return main build output | ||
*/ | ||
Collection<BuildOutput> getMainOutput(); | ||
|
||
/** | ||
* Where the test build output can be located and from which | ||
* sources and resources it was produced | ||
* | ||
* @return test build output | ||
*/ | ||
Collection<BuildOutput> getTestOutput(); | ||
|
||
default AppArtifact getAppArtifact(String extension) { | ||
return getAppArtifact("", extension); | ||
} | ||
|
||
default AppArtifact getAppArtifact(String classifier, String extension) { | ||
return new AppArtifact(getGroupId(), getArtifactId(), classifier, extension, getVersion()); | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.