This commit is contained in:
parent
b2747e8c5c
commit
b9d5d24b03
@ -1,10 +1,15 @@
|
||||
<?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">
|
||||
<!-- 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>
|
||||
<groupId>org.apiguardian</groupId>
|
||||
<artifactId>apiguardian-api</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<version>1.1.2</version>
|
||||
<name>org.apiguardian:apiguardian-api</name>
|
||||
<description>@API Guardian</description>
|
||||
<url>https://github.com/apiguardian-team/apiguardian</url>
|
@ -10,7 +10,7 @@
|
||||
|
||||
<property name="project.groupId" value="org.apiguardian"/>
|
||||
<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.description" value="@API Guardian"/>
|
||||
|
||||
@ -22,7 +22,8 @@
|
||||
|
||||
<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}"/>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
@ -39,11 +40,14 @@
|
||||
|
||||
<target name="compile" description="Compile the code">
|
||||
<mkdir dir="${build.outputDir}"/>
|
||||
<echo message="Compiling all except module-info.java with release=8"/>
|
||||
<javac destdir="${build.outputDir}"
|
||||
nowarn="false"
|
||||
debug="true"
|
||||
encoding="utf-8"
|
||||
optimize="false"
|
||||
deprecation="true"
|
||||
release="${compiler.release}"
|
||||
target="${compiler.target}"
|
||||
verbose="false"
|
||||
fork="false"
|
||||
@ -51,6 +55,25 @@
|
||||
<src>
|
||||
<pathelement location="${build.srcDir}"/>
|
||||
</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>
|
||||
</target>
|
||||
|
||||
@ -92,7 +115,7 @@
|
||||
basedir="${build.outputDir}"
|
||||
excludes="**/package.html">
|
||||
<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-Version" value="${project.version}"/>
|
||||
<attribute name="Specification-Title" value="${project.artifactId}"/>
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: apiguardian
|
||||
Version: 1.0.0
|
||||
Version: 1.1.2
|
||||
Release: 0
|
||||
Summary: API Guardian Java annotation
|
||||
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
|
||||
BuildRequires: ant
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: java-devel >= 1.6
|
||||
BuildRequires: java-devel >= 9
|
||||
BuildRequires: javapackages-local
|
||||
BuildArch: noarch
|
||||
|
||||
@ -51,6 +51,8 @@ API documentation for %{name}.
|
||||
find -name \*.jar -delete
|
||||
cp -p %{SOURCE1} .
|
||||
|
||||
mv src/module/java/*/module-info.java src/main/java/
|
||||
|
||||
%build
|
||||
%{ant} -f %{name}-build.xml jar javadoc
|
||||
|
||||
|
BIN
r1.0.0.tar.gz
(Stored with Git LFS)
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
BIN
r1.1.2.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user