Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
qtran authored Jun 1, 2023
2 parents 01d1002 + e1c0e78 commit 3d5306f
Show file tree
Hide file tree
Showing 474 changed files with 3,044 additions and 741 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.9.0
maven-version: 3.9.2
- name: Build Tycho
env:
JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sitedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.8.6
maven-version: 3.9.2
- name: Build site-doc
env:
JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.8.6
maven-version: 3.9.2
- name: Build Tycho
env:
JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-platform2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.8.6
maven-version: 3.9.2
- name: Build Tycho
env:
JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }}
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pipeline {
label agentLabel
}
tools {
maven 'apache-maven-3.8.6'
maven 'apache-maven-3.9.1'
jdk 'openjdk-jdk17-latest'
}
stages {
Expand Down
7 changes: 7 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,13 @@ This can be disabled with the following configuration in the pom:
</plugin>
```

### Variable resolution in target repository location

URI in `<repository location="...">` in `*.target` files can contain:
- Environment variable as `${env_var:MY_VARIABLE}`
- System variable as `${system_property:myProp}` passed at build time as `-DmyProp`
- Project location as `${project_loc:ProjectName}`

### Migration guide 3.x > 4.x

### New delayed target platform resolving
Expand Down
3 changes: 3 additions & 0 deletions p2-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
<name>P2 Maven Integration</name>
<description>The P2 Maven Plugin provides access to the P2 eco-system inside maven.</description>
<properties></properties>
<prerequisites>
<maven>${minimal-maven-version}</maven>
</prerequisites>
<dependencies>
<dependency>
<groupId>org.eclipse.platform</groupId>
Expand Down
17 changes: 11 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@
<organizationUrl>https://projects.eclipse.org/projects/technology.tycho</organizationUrl>
</developer>
</developers>
<prerequisites>
<maven>3.8.6</maven>
</prerequisites>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho</artifactId>
<version>4.0.0-SNAPSHOT</version>
Expand All @@ -68,6 +65,7 @@
<pluginToolsVersion>3.9.0</pluginToolsVersion>
<jgit-version>6.5.0.202303070854-r</jgit-version>
<maven-version>3.9.2</maven-version>
<minimal-maven-version>3.9.0</minimal-maven-version>
<!-- When updating surefire version, double-check Import-Package statements generated by bnd-maven-plugin and possibly adapt instructions in various bnd.bnd files -->
<!-- Stick to 3.0.0-M5 because of https://github.com/eclipse-tycho/tycho/issues/879 / https://issues.apache.org/jira/projects/SUREFIRE/issues/SUREFIRE-2072 -->
<surefire-version>3.1.0</surefire-version>
Expand Down Expand Up @@ -335,6 +333,9 @@
</goals>
</execution>
</executions>
<configuration>
<extractors>class</extractors>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -489,15 +490,15 @@
<version>${pluginToolsVersion}</version>
<configuration>
<requirements>
<maven>${maven-version}</maven>
<maven>${minimal-maven-version}</maven>
<jdk>${min.jdk.version}</jdk>
</requirements>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.4.3</version>
<version>3.4.4</version>
<reportSets>
<reportSet>
<reports>
Expand All @@ -510,6 +511,7 @@
</reporting>
<modules>
<module>tycho-bundles</module>
<module>tycho-api</module>
<module>sisu-osgi</module>
<module>p2-maven-plugin</module>
<module>tycho-metadata-model</module>
Expand All @@ -531,7 +533,10 @@
<!-- release -->
<module>tycho-versions-plugin</module>
<!-- tycho-p2 -->
<module>tycho-p2</module>
<module>tycho-p2-director-plugin</module>
<module>tycho-p2-plugin</module>
<module>tycho-p2-publisher-plugin</module>
<module>tycho-p2-repository-plugin</module>
<module>tycho-artifactcomparator</module>
<module>tycho-gpg-plugin</module>
<module>tycho-extras</module>
Expand Down
7 changes: 1 addition & 6 deletions sisu-osgi/sisu-equinox-launching/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,7 @@
<dependencies>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>org.eclipse.tycho.core.shared</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>org.eclipse.tycho.embedder.shared</artifactId>
<artifactId>tycho-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand Down
4 changes: 3 additions & 1 deletion target-platform-configuration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@

<artifactId>target-platform-configuration</artifactId>
<packaging>maven-plugin</packaging>

<prerequisites>
<maven>${minimal-maven-version}</maven>
</prerequisites>
<name>Tycho Target Platform Configuration Plugin</name>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.eclipse.tycho.TargetEnvironment;
import org.eclipse.tycho.artifacts.TargetPlatformFilter.CapabilityPattern;
import org.eclipse.tycho.core.TargetPlatformConfiguration.BREEHeaderSelectionPolicy;
import org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigurationReader;
import org.eclipse.tycho.core.resolver.shared.IncludeSourceMode;
import org.eclipse.tycho.core.resolver.shared.PomDependencies;
import org.eclipse.tycho.targetplatform.TargetPlatformFilter.CapabilityPattern;

/**
* Configures the target-platform to use in order to resolve dependencies. <br>
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho</artifactId>
<version>4.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

<artifactId>org.eclipse.tycho.embedder.shared</artifactId>
<artifactId>tycho-api</artifactId>
<packaging>jar</packaging>

<name>Tycho Embedder API Maven/OSGi Shared Classes</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Contributors:
* Tobias Oberlies (SAP SE) - initial API and implementation
*******************************************************************************/
package org.eclipse.tycho.p2.artifact.provider.streaming;
package org.eclipse.tycho;

/**
* Exception thrown when one of the operations of {@link IArtifactSink} fails.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Contributors:
* SAP AG - initial API and implementation
*******************************************************************************/
package org.eclipse.tycho.core.ee.shared;
package org.eclipse.tycho;

import java.util.Collection;
import java.util.Objects;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Contributors:
* SAP SE - initial API and implementation
*******************************************************************************/
package org.eclipse.tycho.core.ee.shared;
package org.eclipse.tycho;

import java.util.Collection;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* SAP AG - initial API and implementation
*******************************************************************************/

package org.eclipse.tycho.locking.facade;
package org.eclipse.tycho;

import java.io.File;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* SAP AG - initial API and implementation
*******************************************************************************/

package org.eclipse.tycho.locking.facade;
package org.eclipse.tycho;

/**
* Provides process-level file locking. Locking is advisory, meaning that processes must
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Contributors:
* Tobias Oberlies (SAP SE) - initial API and implementation
*******************************************************************************/
package org.eclipse.tycho.p2.artifact.provider;
package org.eclipse.tycho;

import java.io.File;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@
* Contributors:
* Tobias Oberlies (SAP SE) - initial API and implementation
*******************************************************************************/
package org.eclipse.tycho.p2.artifact.provider;
package org.eclipse.tycho;

import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.equinox.p2.metadata.IArtifactKey;
import org.eclipse.equinox.p2.query.IQueryable;
import org.eclipse.tycho.p2.artifact.provider.streaming.ArtifactSinkException;
import org.eclipse.tycho.p2.artifact.provider.streaming.IArtifactSink;

/**
* Provider for artifact content.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Contributors:
* Tobias Oberlies (SAP SE) - initial API and implementation
*******************************************************************************/
package org.eclipse.tycho.p2.artifact.provider.streaming;
package org.eclipse.tycho;

import java.io.OutputStream;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Contributors:
* Tobias Oberlies (SAP SE) - initial API and implementation
*******************************************************************************/
package org.eclipse.tycho.p2.artifact.provider;
package org.eclipse.tycho;

import java.io.File;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,12 @@
* Contributors:
* Tobias Oberlies (SAP SE) - initial API and implementation
*******************************************************************************/
package org.eclipse.tycho.p2.artifact.provider;
package org.eclipse.tycho;

import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.equinox.p2.metadata.IArtifactKey;
import org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor;
import org.eclipse.tycho.p2.artifact.provider.streaming.ArtifactSinkException;
import org.eclipse.tycho.p2.artifact.provider.streaming.IArtifactSink;
import org.eclipse.tycho.p2.artifact.provider.streaming.IRawArtifactSink;

/**
* Provider for artifact content in different formats.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Contributors:
* Tobias Oberlies (SAP SE) - initial API and implementation
*******************************************************************************/
package org.eclipse.tycho.p2.artifact.provider.streaming;
package org.eclipse.tycho;

import org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* SAP AG - initial API and implementation
*******************************************************************************/

package org.eclipse.tycho.locking.facade;
package org.eclipse.tycho;

public class LockTimeoutException extends RuntimeException {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Contributors:
* SAP AG - initial API and implementation
*******************************************************************************/
package org.eclipse.tycho.repository.registry.facade;
package org.eclipse.tycho;

import java.io.File;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Contributors:
* SAP AG - initial API and implementation
*******************************************************************************/
package org.eclipse.tycho.core.ee.shared;
package org.eclipse.tycho;

import java.util.Objects;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Contributors:
* SAP SE - initial API and implementation
*******************************************************************************/
package org.eclipse.tycho.repository.publishing;
package org.eclipse.tycho;

import org.eclipse.equinox.p2.metadata.IArtifactKey;

Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions tycho-apitools-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
<artifactId>tycho-apitools-plugin</artifactId>
<name>Plugin for performing API analysis tasks</name>
<packaging>maven-plugin</packaging>
<prerequisites>
<maven>${minimal-maven-version}</maven>
</prerequisites>
<properties>
<asm.version>9.5</asm.version>
</properties>
Expand Down
3 changes: 3 additions & 0 deletions tycho-baseline-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
</parent>
<artifactId>tycho-baseline-plugin</artifactId>
<packaging>maven-plugin</packaging>
<prerequisites>
<maven>${minimal-maven-version}</maven>
</prerequisites>
<name>Tycho Baseline Plugin</name>
<description>A plugin for handling OSGi Declarative Services</description>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion tycho-bnd-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<description>Builds BND Workspace with Maven</description>
<packaging>maven-plugin</packaging>
<prerequisites>
<maven>3.8.6</maven>
<maven>${minimal-maven-version}</maven>
</prerequisites>
<dependencies>
<dependency>
Expand Down
20 changes: 14 additions & 6 deletions tycho-build/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@
<artifactId>tycho-pomless</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>org.eclipse.tycho.core.shared</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-buildtimestamp-jgit</artifactId>
Expand Down Expand Up @@ -142,6 +137,19 @@
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>biz.aQute.bnd</groupId>
<artifactId>biz.aQute.bndlib</artifactId>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.service.repository</artifactId>
<version>1.1.0</version>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.util.promise</artifactId>
<version>1.3.0</version>
</dependency>
</dependencies>
</project>
Loading

0 comments on commit 3d5306f

Please sign in to comment.