Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions pom-local-install.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>java-pti</groupId>
<artifactId>java-pti</artifactId>
<version>1</version>
<packaging>pom</packaging>

<parent>
<groupId>rcp_parent</groupId>
<artifactId>rcp_parent</artifactId>
<version>1</version>
<relativePath>../rcp-build/pom_build/</relativePath>
</parent>

<properties>
<java.pti.version>1.13.0</java.pti.version>
</properties>

<modules>
<module>releng</module>
</modules>
</project>
1 change: 1 addition & 0 deletions releng/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
maven/
61 changes: 61 additions & 0 deletions releng/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>java-pti-install-local</groupId>
<artifactId>java-pti-install-local</artifactId>
<version>1</version>
<packaging>pom</packaging>

<parent>
<groupId>java-pti</groupId>
<artifactId>java-pti</artifactId>
<version>1</version>
<relativePath>../pom-local-install.xml</relativePath>
</parent>


<properties>
<target.destination>../updates</target.destination>
</properties>

<build>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.3.2</version>
<configuration>
<filesets>
<fileset>
<directory>${target.destination}</directory>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
<executions>
<execution>
<id>install-external</id>
<phase>process-resources</phase>
<configuration>
<file>${basedir}/../silabs-pti/build/libs/silabs-pti-lib-${java.pti.version}.jar</file>
<repositoryLayout>default</repositoryLayout>
<groupId>com.silabs.pti</groupId>
<artifactId>com.silabs.external.silabs_pti</artifactId>
<version>${java.pti.version}</version>
<packaging>jar</packaging>
<generatePom>true</generatePom>
<localRepositoryPath>maven</localRepositoryPath>
</configuration>
<goals>
<goal>install-file</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
14 changes: 14 additions & 0 deletions silabs-pti/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import java.nio.file.Paths
plugins {
id 'application'
id 'java'
id "biz.aQute.bnd.builder" version "7.0.0"
}

project.ext.set('archiveName', 'silabs-pti-lib')
Expand Down Expand Up @@ -59,6 +60,19 @@ jar {
manifest {
attributes(project.manifestMap)
}
// OSGi metadata using BND
bundle {
bnd(
"Bundle-Name": "silabs-pti-lib",
"Bundle-Vendor": "Silicon Labs",
"Bundle-SymbolicName": "com.silabs.external.silabs_pti",
"Bundle-Version": project.silabsPtiVersion,
"Bundle-RequiredExecutionEnvironment": "JavaSE-11",
"Bundle-ActivationPolicy": "lazy",
"Main-Class": project.mainClass,
"-exportcontents": "com.silabs.pti.*"
)
}
}

task createDebugMessageTypes() {
Expand Down