Terms of Service | Privacy Policy | Cookie Policy

Skip to content
Commits on Source (12)
......@@ -29,3 +29,5 @@
/aggregator/nb-configuration.xml
/sample/liquibase-3.4/target/
/sample/nbactions.xml
*.iml
.idea/
image: registry.sw4j.net/sw4j-net/jdk8-maven3/master:latest
stages:
- build
- deploy
variables:
MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode"
cache:
key: ${CI_PROJECT_PATH_SLUG}
paths:
- .m2/repository
build:
stage: build
script:
- mvn $MAVEN_CLI_OPTS clean install
deploy:
stage: deploy
only:
refs:
- master@sw4j-org/tool-jpa-processor
variables:
- $REPO_USER
script:
- mvn $MAVEN_CLI_OPTS deploy
pages:
stage: deploy
only:
refs:
- master
script:
- mvn $MAVEN_CLI_OPTS site post-site
- mv target/staging public
artifacts:
paths:
- public
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>${env.CI_PROJECT_DIR}/.m2/repository</localRepository>
<profiles>
<profile>
<id>release</id>
<properties>
<gpg.executable>gpg2</gpg.executable>
<gpg.keyname>${env.CI_GPG_KEYNAME}</gpg.keyname>
</properties>
</profile>
<profile>
<id>standard</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>ossrh-snapshots</id>
<name>http://central.sonatype.org Snapshots</name>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<layout>default</layout>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>ossrh-snapshots</id>
<name>http://central.sonatype.org Snapshots</name>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<servers>
<server>
<id>ossrh</id>
<username>${env.REPO_USER}</username>
<password>${env.REPO_PWD}</password>
</server>
</servers>
</settings>
......@@ -36,7 +36,8 @@ pipeline {
checkstyle canComputeNew: false, pattern: '**/checkstyle-result.xml'
findbugs canComputeNew: false, shouldDetectModules: true,
pattern: '**/target/findbugsXml.xml'
jacoco exclusionPattern: '**/jaxb/*.class'
jacoco exclusionPattern: '**/jaxb/*.class', execPattern: '**/jacoco.exec'
jacoco exclusionPattern: '**/jaxb/*.class', execPattern: '**/jacoco-it.exec'
pmd canComputeNew: false, pattern: '**/pmd.xml'
}
}
......
......@@ -134,6 +134,21 @@ public class ExecutableElementBuilder extends ElementBuilder<ExecutableElement>
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public TypeMirror getReceiverType() {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public boolean isDefault() {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public <A extends Annotation> A[] getAnnotationsByType(Class<A> aClass) {
throw new UnsupportedOperationException("Not supported yet.");
}
}
}
......@@ -93,6 +93,11 @@ public class PackageElementBuilder extends ElementBuilder<PackageElement> {
return "".contentEquals(qualifiedName);
}
@Override
public <A extends Annotation> A[] getAnnotationsByType(Class<A> aClass) {
throw new UnsupportedOperationException("Not supported yet.");
}
}
}
......@@ -112,6 +112,11 @@ public class TypeElementBuilder extends ElementBuilder<TypeElement> {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public <A extends Annotation> A[] getAnnotationsByType(Class<A> aClass) {
throw new UnsupportedOperationException("Not supported yet.");
}
}
}
......@@ -71,6 +71,11 @@ public class VariableElementBuilder extends ElementBuilder<VariableElement> {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public <A extends Annotation> A[] getAnnotationsByType(Class<A> aClass) {
throw new UnsupportedOperationException("Not supported yet.");
}
}
}
......@@ -16,9 +16,12 @@
*/
package org.sw4j.tool.annotation.jpa.processor.mock.lang.model.type;
import javax.lang.model.element.AnnotationMirror;
import javax.lang.model.type.TypeKind;
import javax.lang.model.type.TypeMirror;
import javax.lang.model.type.TypeVisitor;
import java.lang.annotation.Annotation;
import java.util.List;
/**
*
......@@ -66,4 +69,19 @@ public class TypeMirrorMock implements TypeMirror {
}
}
@Override
public List<? extends AnnotationMirror> getAnnotationMirrors() {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public <A extends Annotation> A getAnnotation(Class<A> aClass) {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public <A extends Annotation> A[] getAnnotationsByType(Class<A> aClass) {
throw new UnsupportedOperationException("Not supported yet.");
}
}
......@@ -21,8 +21,8 @@
<!-- General properties -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<!-- Netbeans Hints -->
<netbeans.hint.license>gpl30</netbeans.hint.license>
......@@ -58,6 +58,7 @@
<jxr.plugin.version>2.5</jxr.plugin.version>
<pmd.plugin.version>3.7</pmd.plugin.version>
<project-info-reports.plugin.version>2.8.1</project-info-reports.plugin.version>
<quality-profile.version>0.1.0-SNAPSHOT</quality-profile.version>
<release.plugin.version>2.5.3</release.plugin.version>
<resources.plugin.version>3.0.1</resources.plugin.version>
<scm.publish.plugin.version>1.1</scm.publish.plugin.version>
......@@ -65,7 +66,7 @@
<surefire.plugin.version>2.19.1</surefire.plugin.version>
<surefire.report.plugin.version>2.19.1</surefire.report.plugin.version>
<taglist.plugin.version>2.4</taglist.plugin.version>
<versions.plugin.version>2.2</versions.plugin.version>
<versions.plugin.version>2.5</versions.plugin.version>
</properties>
<developers>
......@@ -77,7 +78,7 @@
<role>Developer</role>
</roles>
<timezone>CET</timezone>
<url>https://github.com/uweplonus</url>
<url>https://git.sw4j.net/uweplonus/</url>
</developer>
</developers>
......@@ -114,6 +115,13 @@
</dependencyManagement>
<build>
<extensions>
<extension>
<groupId>org.sw4j</groupId>
<artifactId>quality-profile</artifactId>
<version>${quality-profile.version}</version>
</extension>
</extensions>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
......@@ -200,8 +208,7 @@
<goal>stage</goal>
</goals>
<configuration>
<skipDeploy>false</skipDeploy>
<stagingDirectory>${session.topLevelProject.basedir}/target/staging/${project.version}</stagingDirectory>
<skipDeploy>true</skipDeploy>
</configuration>
</execution>
</executions>
......@@ -216,7 +223,7 @@
<configuration>
<threshold>Low</threshold>
<effort>Max</effort>
<includeFilterFile>https://github.com/sw4j-org/configuration/raw/master/findbugs.xml</includeFilterFile>
<includeFilterFile>org/sw4j/quality-profile/findbugs/findbugs-3.0.4.xml</includeFilterFile>
</configuration>
</plugin>
</plugins>
......@@ -242,7 +249,7 @@
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${checkstyle.plugin.version}</version>
<configuration>
<configLocation>https://github.com/sw4j-org/configuration/raw/master/checkstyle.xml</configLocation>
<configLocation>org/sw4j/quality-profile/checkstyle/checkstyle-6.19.xml</configLocation>
</configuration>
<dependencies>
<dependency>
......@@ -293,7 +300,7 @@
<version>${pmd.plugin.version}</version>
<configuration>
<rulesets>
<ruleset>https://github.com/sw4j-org/configuration/raw/master/pmd.xml</ruleset>
<ruleset>org/sw4j/quality-profile/pmd/pmd-3.7.xml</ruleset>
</rulesets>
</configuration>
</plugin>
......@@ -492,13 +499,16 @@
<configuration>
<threshold>Low</threshold>
<effort>Max</effort>
<includeFilterFile>https://github.com/sw4j-org/configuration/raw/master/findbugs.xml</includeFilterFile>
<includeFilterFile>org/sw4j/quality-profile/findbugs/findbugs-3.0.4.xml</includeFilterFile>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${checkstyle.plugin.version}</version>
<configuration>
<configLocation>org/sw4j/quality-profile/checkstyle/checkstyle-6.19.xml</configLocation>
</configuration>
<reportSets>
<reportSet>
<reports>
......@@ -512,7 +522,7 @@
<artifactId>maven-pmd-plugin</artifactId>
<version>${pmd.plugin.version}</version>
<configuration>
<configLocation>https://github.com/sw4j-org/configuration/raw/master/pmd.xml</configLocation>
<configLocation>org/sw4j/quality-profile/pmd/pmd-3.7.xml</configLocation>
<skipEmptyReport>false</skipEmptyReport>
</configuration>
<reportSets>
......@@ -582,7 +592,7 @@
<artifactId>versions-maven-plugin</artifactId>
<version>${versions.plugin.version}</version>
<configuration>
<rulesUri>https://github.com/sw4j-org/configuration/raw/master/maven-version-rules.xml</rulesUri>
<rulesUri>classpath:///org/sw4j/quality-profile/versions/rules-2.5.xml</rulesUri>
</configuration>
<reportSets>
<reportSet>
......@@ -599,7 +609,7 @@
<artifactId>dependency-check-maven</artifactId>
<version>${dependency-check.plugin.version}</version>
<configuration>
<suppressionFile>https://github.com/sw4j-org/configuration/raw/master/dependency-check-suppression.xml</suppressionFile>
<suppressionFile>src/dependency-check/suppression.xml</suppressionFile>
</configuration>
<reportSets>
<reportSet>
......@@ -613,28 +623,36 @@
</plugins>
</reporting>
<url>https://sw4j-org.github.io/tool-jpa-processor/${project.version}/</url>
<url>https://tool-jpa-processor.sw4j.org/</url>
<issueManagement>
<system>GitHub</system>
<url>https://github.com/sw4j-org/tool-jpa-processor/issues</url>
<system>GitLab</system>
<url>https://git.sw4j.net/sw4j-org/tool-jpa-processor/issues</url>
</issueManagement>
<scm>
<url>https://github.com/sw4j-org/tool-jpa-processor</url>
<developerConnection>scm:git:ssh://git@github.com:sw4j-org/tool-jpa-processor.git</developerConnection>
<url>https://git.sw4j.net/sw4j-org/tool-jpa-processor</url>
<developerConnection>scm:git:ssh://git@git.sw4j.net:sw4j-org/tool-jpa-processor.git</developerConnection>
</scm>
<distributionManagement>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<site>
<id>github</id>
<url>scm:git:https://github.com/sw4j-org/tool-jpa-processor.git</url>
<id>pages</id>
<url>https://tool-jpa-processor.sw4j.org/</url>
</site>
</distributionManagement>
<ciManagement>
<system>jenkins</system>
<url>https://ci.sw4j.net/jenkins/job/GitHub%20sw4j-org/job/tool-jpa-processor/</url>
<system>GitLab</system>
<url>https://git.sw4j.net/sw4j-org/tool-jpa-processor/pipelines</url>
</ciManagement>
</project>
......@@ -8,7 +8,7 @@
<groupId>org.sw4j.tool.annotation.jpa</groupId>
<artifactId>parent</artifactId>
<version>0.1.0-SNAPSHOT</version>
<relativePath>../</relativePath>
<!--<relativePath>../</relativePath>-->
</parent>
<groupId>org.sw4j.tool.annotation.jpa</groupId>
......@@ -139,37 +139,14 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<executions>
<execution>
<id>attach-descriptor</id>
<goals>
<goal>attach-descriptor</goal>
</goals>
</execution>
<execution>
<id>stage-for-publish</id>
<phase>post-site</phase>
<goals>
<goal>stage</goal>
</goals>
<configuration>
<skipDeploy>false</skipDeploy>
<stagingDirectory>${session.topLevelProject.basedir}/../target/staging/${project.version}/sample</stagingDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<distributionManagement>
<!--<distributionManagement>
<site>
<id>github</id>
<url>scm:git:https://github.com/sw4j-org/tool-jpa-processor.git</url>
</site>
</distributionManagement>
</distributionManagement>-->
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<suppressions xmlns="https://www.owasp.org/index.php/OWASP_Dependency_Check_Suppression">
<!--<suppress base="true|false">
<notes><![CDATA[Reason]]></notes>
one of
<filePath regex="true|false" caseSensitive="true|false">or sha1 or gav</filePath>
<sha1>or filePath or gav</sha1>
<gav regex="true|false" caseSensitive="true|false">org\.example:example.*</gav>
any combination
<cpe regex="true|false" caseSensitive="true|false">cpe:/a:example:example:x.y.z</cpe>
<cve>CVE-1999-1234</cve>
<cwe>123</cwe>
<cvssBelow></cvssBelow>
</suppress>-->
</suppressions>