Fridrich Strba 2024-04-25 08:52:09 +00:00 committed by Git OBS Bridge
parent b2747e8c5c
commit b9d5d24b03
5 changed files with 41 additions and 11 deletions

View File

@ -1,10 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" <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"> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- This module was also published with a richer model, Gradle metadata, -->
<!-- which should be used instead. Do not delete the following line which -->
<!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
<!-- that they should prefer consuming it instead. -->
<!-- do_not_remove: published-with-gradle-metadata -->
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.apiguardian</groupId> <groupId>org.apiguardian</groupId>
<artifactId>apiguardian-api</artifactId> <artifactId>apiguardian-api</artifactId>
<version>1.0.0</version> <version>1.1.2</version>
<name>org.apiguardian:apiguardian-api</name> <name>org.apiguardian:apiguardian-api</name>
<description>@API Guardian</description> <description>@API Guardian</description>
<url>https://github.com/apiguardian-team/apiguardian</url> <url>https://github.com/apiguardian-team/apiguardian</url>

View File

@ -10,7 +10,7 @@
<property name="project.groupId" value="org.apiguardian"/> <property name="project.groupId" value="org.apiguardian"/>
<property name="project.artifactId" value="apiguardian-api"/> <property name="project.artifactId" value="apiguardian-api"/>
<property name="project.version" value="1.0.0"/> <property name="project.version" value="1.1.2"/>
<property name="project.name" value="${project.groupId}:${project.artifactId}"/> <property name="project.name" value="${project.groupId}:${project.artifactId}"/>
<property name="project.description" value="@API Guardian"/> <property name="project.description" value="@API Guardian"/>
@ -22,7 +22,8 @@
<property name="reporting.outputDirectory" value="${build.dir}/site"/> <property name="reporting.outputDirectory" value="${build.dir}/site"/>
<property name="compiler.source" value="1.8"/> <property name="compiler.release" value="8"/>
<property name="compiler.source" value="1.${compiler.release}"/>
<property name="compiler.target" value="${compiler.source}"/> <property name="compiler.target" value="${compiler.source}"/>
<!-- ====================================================================== --> <!-- ====================================================================== -->
@ -39,11 +40,14 @@
<target name="compile" description="Compile the code"> <target name="compile" description="Compile the code">
<mkdir dir="${build.outputDir}"/> <mkdir dir="${build.outputDir}"/>
<echo message="Compiling all except module-info.java with release=8"/>
<javac destdir="${build.outputDir}" <javac destdir="${build.outputDir}"
nowarn="false" nowarn="false"
debug="true" debug="true"
encoding="utf-8"
optimize="false" optimize="false"
deprecation="true" deprecation="true"
release="${compiler.release}"
target="${compiler.target}" target="${compiler.target}"
verbose="false" verbose="false"
fork="false" fork="false"
@ -51,6 +55,25 @@
<src> <src>
<pathelement location="${build.srcDir}"/> <pathelement location="${build.srcDir}"/>
</src> </src>
<exclude name="**/module-info.java"/>
</javac>
<echo message="Compiling module-info.java with release=9"/>
<javac destdir="${build.outputDir}"
nowarn="false"
debug="true"
encoding="utf-8"
optimize="false"
deprecation="true"
release="9"
verbose="false"
fork="false">
<src>
<pathelement location="${build.srcDir}"/>
</src>
<include name="**/module-info.java"/>
<modulepath>
<pathelement location="${build.outputDir}"/>
</modulepath>
</javac> </javac>
</target> </target>
@ -92,7 +115,7 @@
basedir="${build.outputDir}" basedir="${build.outputDir}"
excludes="**/package.html"> excludes="**/package.html">
<manifest> <manifest>
<attribute name="Automatic-Module-Name" value="${project.artifactId}"/> <attribute name="Implementation-Title" value="${project.artifactId}"/>
<attribute name="Implementation-Vendor" value="apiguardian.org"/> <attribute name="Implementation-Vendor" value="apiguardian.org"/>
<attribute name="Implementation-Version" value="${project.version}"/> <attribute name="Implementation-Version" value="${project.version}"/>
<attribute name="Specification-Title" value="${project.artifactId}"/> <attribute name="Specification-Title" value="${project.artifactId}"/>

View File

@ -1,7 +1,7 @@
# #
# spec file for package apiguardian # spec file for package apiguardian
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,7 +17,7 @@
Name: apiguardian Name: apiguardian
Version: 1.0.0 Version: 1.1.2
Release: 0 Release: 0
Summary: API Guardian Java annotation Summary: API Guardian Java annotation
License: Apache-2.0 License: Apache-2.0
@ -28,7 +28,7 @@ Source1: %{name}-build.xml
Source100: https://repo1.maven.org/maven2/org/apiguardian/apiguardian-api/%{version}/apiguardian-api-%{version}.pom Source100: https://repo1.maven.org/maven2/org/apiguardian/apiguardian-api/%{version}/apiguardian-api-%{version}.pom
BuildRequires: ant BuildRequires: ant
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: java-devel >= 1.6 BuildRequires: java-devel >= 9
BuildRequires: javapackages-local BuildRequires: javapackages-local
BuildArch: noarch BuildArch: noarch
@ -51,6 +51,8 @@ API documentation for %{name}.
find -name \*.jar -delete find -name \*.jar -delete
cp -p %{SOURCE1} . cp -p %{SOURCE1} .
mv src/module/java/*/module-info.java src/main/java/
%build %build
%{ant} -f %{name}-build.xml jar javadoc %{ant} -f %{name}-build.xml jar javadoc

BIN
r1.0.0.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
r1.1.2.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.