Skip to content

Commit 82a14cb

Browse files
committed
initial commit
0 parents  commit 82a14cb

File tree

62 files changed

+3978
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+3978
-0
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Java CI with Maven
2+
3+
on:
4+
push:
5+
branches: [ main, feature/* ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
name: Build project
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
16+
- name: Check out sources
17+
uses: actions/checkout@v4
18+
19+
- name: Set up JDK 17
20+
uses: actions/setup-java@v4
21+
with:
22+
distribution: 'temurin'
23+
java-version: 17
24+
cache: 'maven'
25+
26+
- name: Build and deploy snapshot
27+
env:
28+
CENTRAL_OSSRH_USERNAME: ${{ secrets.CENTRAL_OSSRH_USERNAME }}
29+
CENTRAL_OSSRH_PASSWORD: ${{ secrets.CENTRAL_OSSRH_PASSWORD }}
30+
run: ./mvnw -B deploy -s settings.xml
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Compatibility builds
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '5 6 * * *'
7+
8+
jobs:
9+
compatibility:
10+
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
version: ['3.2.12', '3.4.0-SNAPSHOT']
16+
17+
name: Compatibility with Spring Boot ${{ matrix.version }}
18+
19+
steps:
20+
21+
- name: Check out sources
22+
uses: actions/checkout@v4
23+
24+
- name: Set up JDK 17
25+
uses: actions/setup-java@v4
26+
with:
27+
distribution: 'temurin'
28+
java-version: 17
29+
cache: 'maven'
30+
31+
- name: Build
32+
run: ./mvnw -B verify -Dspring-boot.version=${{ matrix.version }} --file pom.xml

.github/workflows/release.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release to Maven Central
2+
3+
on:
4+
push:
5+
branches: [ release/release ]
6+
7+
jobs:
8+
build:
9+
name: Release project
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
14+
- name: Check out sources
15+
uses: actions/checkout@v4
16+
17+
- name: Set up JDK 17
18+
uses: actions/setup-java@v3
19+
with:
20+
distribution: 'temurin'
21+
java-version: 17
22+
cache: 'maven'
23+
24+
- name: Install GPG key
25+
run: |
26+
echo "${{ secrets.GPG_PRIVATE_KEY }}" > gpg.asc
27+
echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --passphrase-fd 0 --import gpg.asc
28+
29+
- name: Release to Maven Central OSSRH
30+
env:
31+
CENTRAL_OSSRH_USERNAME: ${{ secrets.CENTRAL_OSSRH_USERNAME }}
32+
CENTRAL_OSSRH_PASSWORD: ${{ secrets.CENTRAL_OSSRH_PASSWORD }}
33+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
34+
run: |
35+
./mvnw -B clean deploy -Psonatype -s settings.xml

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.classpath
2+
.DS_Store
3+
.idea/
4+
.project
5+
.settings/
6+
.sts4-cache/
7+
.factorypath
8+
target/
9+
*.orig
10+
*.iml
11+
*.ipr
12+
*.iws
13+
.flattened-pom.xml
14+
changelog.txt

.java-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
17

.mvn/wrapper/maven-wrapper.jar

58.5 KB
Binary file not shown.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip
18+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.1/maven-wrapper-3.1.1.jar

jmolecules-apt/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dependency-reduced-pom.xml

jmolecules-apt/img/ide.png

2.06 MB
Loading

jmolecules-apt/pom.xml

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<artifactId>jmolecules-apt</artifactId>
7+
<name>jMolecules - Annotation processor</name>
8+
9+
<parent>
10+
<groupId>org.jmolecules.integrations</groupId>
11+
<artifactId>jmolecules-integrations</artifactId>
12+
<version>0.31.0-SNAPSHOT</version>
13+
</parent>
14+
15+
<properties>
16+
<module.name>org.jmolecules.integrations.apt</module.name>
17+
<java.version>17</java.version>
18+
</properties>
19+
20+
<dependencies>
21+
22+
<dependency>
23+
<groupId>org.jmolecules</groupId>
24+
<artifactId>jmolecules-ddd</artifactId>
25+
<version>${jmolecules-next.version}</version>
26+
<optional>true</optional>
27+
</dependency>
28+
29+
<dependency>
30+
<groupId>org.jmolecules.integrations</groupId>
31+
<artifactId>jmolecules-stereotype</artifactId>
32+
<version>${project.version}</version>
33+
</dependency>
34+
35+
<dependency>
36+
<groupId>net.minidev</groupId>
37+
<artifactId>json-smart</artifactId>
38+
</dependency>
39+
40+
<dependency>
41+
<groupId>com.jayway.jsonpath</groupId>
42+
<artifactId>json-path</artifactId>
43+
<scope>test</scope>
44+
</dependency>
45+
46+
<dependency>
47+
<groupId>io.toolisticon.aptk</groupId>
48+
<artifactId>aptk-tools</artifactId>
49+
<version>${aptk-tools.version}</version>
50+
</dependency>
51+
52+
<dependency>
53+
<groupId>io.toolisticon.cute</groupId>
54+
<artifactId>cute</artifactId>
55+
<version>1.7.0</version>
56+
<scope>test</scope>
57+
</dependency>
58+
59+
</dependencies>
60+
61+
<build>
62+
<plugins>
63+
64+
<plugin>
65+
<groupId>org.apache.maven.plugins</groupId>
66+
<artifactId>maven-compiler-plugin</artifactId>
67+
<version>3.13.0</version>
68+
<executions>
69+
<execution>
70+
<id>default-compile</id>
71+
<configuration>
72+
<compilerArgument>-proc:none</compilerArgument>
73+
</configuration>
74+
</execution>
75+
</executions>
76+
</plugin>
77+
78+
<plugin>
79+
<groupId>org.apache.maven.plugins</groupId>
80+
<artifactId>maven-shade-plugin</artifactId>
81+
<version>3.5.1</version>
82+
<executions>
83+
<execution>
84+
<phase>package</phase>
85+
<goals>
86+
<goal>shade</goal>
87+
</goals>
88+
<configuration>
89+
90+
<artifactSet>
91+
<includes>
92+
<include>io.toolisticon.aptk:*</include>
93+
<include>net.minidev:*</include>
94+
</includes>
95+
</artifactSet>
96+
97+
<relocations>
98+
<relocation>
99+
<pattern>io.toolisticon.aptk</pattern>
100+
<shadedPattern>org.jmolecules.annotation.processor.aptk</shadedPattern>
101+
</relocation>
102+
<relocation>
103+
<pattern>net.minidev</pattern>
104+
<shadedPattern>org.jmolecules.annotation.processor.net.minidev</shadedPattern>
105+
</relocation>
106+
</relocations>
107+
108+
</configuration>
109+
</execution>
110+
</executions>
111+
</plugin>
112+
113+
<plugin>
114+
<groupId>org.apache.maven.plugins</groupId>
115+
<artifactId>maven-jar-plugin</artifactId>
116+
<version>3.4.2</version>
117+
<configuration>
118+
<archive>
119+
<manifestEntries>
120+
<Spring-Boot-Jar-Type>annotation-processor</Spring-Boot-Jar-Type>
121+
</manifestEntries>
122+
</archive>
123+
</configuration>
124+
</plugin>
125+
126+
</plugins>
127+
</build>
128+
129+
</project>

0 commit comments

Comments
 (0)