Skip to content

Commit 64e9fa7

Browse files
committed
Merge branch 'release/0.0.4'
2 parents e9d5bbc + 9c5749d commit 64e9fa7

File tree

78 files changed

+1470
-104
lines changed

Some content is hidden

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

78 files changed

+1470
-104
lines changed

.codacy.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
engines:
3+
duplications:
4+
exclude_paths:
5+
- "**/src/test/kotlin/**"
6+
7+
exclude_paths:
8+
- "README.md"
9+
- ".github/**"
10+
- "docs/**"
11+
- '**/packages.md'

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ end_of_line = lf
1313
insert_final_newline = true
1414
charset = utf-8
1515
trim_trailing_whitespace = true
16-
max_line_length = 200
16+
max_line_length = 256
1717

1818
[*.md]
1919
trim_trailing_whitespace = false

.github/workflows/development.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,15 @@ jobs:
3232
- name: Prepare Maven Wrapper
3333
run: chmod +x ./mvnw
3434

35-
# Build
35+
# Build and integration test
3636
- name: Build with Maven
3737
run: ./mvnw clean verify -U -B -T4 -ntp
3838

39-
# I-test
40-
- name: Run itest
41-
run: ./mvnw integration-test failsafe:verify -Pitest -U -B -T4 -ntp
42-
43-
# - name: Upload coverage to Codecov
44-
# if: github.event_name == 'push' && github.actor != 'dependabot[bot]'
45-
# uses: codecov/codecov-action@v1.0.2
46-
# with:
47-
# token: ${{secrets.CODECOV_TOKEN}}
39+
- name: Upload coverage to Codecov
40+
if: github.event_name == 'push' && github.actor != 'dependabot[bot]'
41+
uses: codecov/codecov-action@v4
42+
with:
43+
token: ${{secrets.CODECOV_TOKEN}}
4844

4945
# - name: Upload test coverage to Codacy
5046
# if: github.event_name == 'push' && github.actor != 'dependabot[bot]'

.github/workflows/master.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ jobs:
4646
OSS_CENTRAL_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
4747
OSS_CENTRAL_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
4848

49-
# - name: Upload coverage information
50-
# uses: codecov/codecov-action@v2
51-
# with:
52-
# token: ${{ secrets.CODECOV_TOKEN }}
49+
- name: Upload coverage information
50+
uses: codecov/codecov-action@v4
51+
with:
52+
token: ${{ secrets.CODECOV_TOKEN }}
5353

5454
# - name: Upload test coverage to Codacy
5555
# if: github.event_name == 'push' && github.actor != 'dependabot[bot]'
56-
# run: bash <(curl -Ls https://coverage.codacy.com/get.sh)
56+
# run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l Kotlin -r _mvn/report-generator/target/jacoco-aggregate/jacoco.xml
5757
# env:
5858
# CODACY_PROJECT_TOKEN: "${{secrets.CODACY_PROJECT_TOKEN}}"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ buildNumber.properties
1212
.mvn/timing.properties
1313
# https://github.com/takari/maven-wrapper#usage-without-binary-jar
1414
.mvn/wrapper/maven-wrapper.jar
15+
.mvn/maven.config
1516

1617
### STS ###
1718
.apt_generated

.mvn/wrapper/maven-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
wrapperVersion=3.3.2
22
distributionType=only-script
3-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.8/apache-maven-3.9.8-bin.zip
3+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
# kotlin-code-generation
22

3+
The one-stop lib for code generation for kotlin (jvm) and code generation testing. Based on [kotlin-poet](https://square.github.io/kotlinpoet/).
4+
5+
36
[![incubating](https://img.shields.io/badge/lifecycle-INCUBATING-orange.svg)](https://github.com/holisticon#open-source-lifecycle)
7+
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.toolisticon.kotlin.generation/kotlin-code-generation/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.toolisticon.kotlin.generation/kotlin-code-generation)
48
[![Build Status](https://github.com/toolisticon/kotlin-code-generation/workflows/Development%20branches/badge.svg)](https://github.com/toolisticon/kotlin-code-generation/actions)
9+
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/e493c246c3684b95a2ef097ae912d45a)](https://app.codacy.com/gh/toolisticon/kotlin-code-generation/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
10+
[![codecov](https://codecov.io/gh/toolisticon/kotlin-code-generation/graph/badge.svg?token=kyJ82m5DAT)](https://codecov.io/gh/toolisticon/kotlin-code-generation)
11+
[![Kotlin](https://img.shields.io/badge/kotlin-2.0.20-blue.svg?logo=kotlin)](http://kotlinlang.org)
512
[![sponsored](https://img.shields.io/badge/sponsoredBy-Holisticon-RED.svg)](https://holisticon.de/)
6-
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.toolisticon.kotlin.generation/kotlin-code-generation/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.toolisticon.kotlin.generation/kotlin-code-generation)
713

814
**Usage:**
915

_mvn/parent/pom.xml renamed to _build/parent/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>io.toolisticon.kotlin.generation._</groupId>
77
<artifactId>kotlin-code-generation-root</artifactId>
8-
<version>0.0.3</version>
8+
<version>0.0.4</version>
99
<relativePath>../../pom.xml</relativePath>
1010
</parent>
1111

_build/report-generator/pom.xml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<parent>
6+
<groupId>io.toolisticon.kotlin.generation._</groupId>
7+
<artifactId>kotlin-code-generation-parent</artifactId>
8+
<version>0.0.4</version>
9+
<relativePath>../parent/pom.xml</relativePath>
10+
</parent>
11+
12+
<artifactId>report-generator</artifactId>
13+
<name>report: ${project.artifactId}</name>
14+
<description>Generates aggregate reports.</description>
15+
<packaging>pom</packaging>
16+
17+
<dependencies>
18+
<dependency>
19+
<groupId>io.toolisticon.kotlin.generation</groupId>
20+
<artifactId>kotlin-code-generation</artifactId>
21+
<version>${project.version}</version>
22+
</dependency>
23+
<dependency>
24+
<groupId>io.toolisticon.kotlin.generation</groupId>
25+
<artifactId>kotlin-code-generation-test</artifactId>
26+
<version>${project.version}</version>
27+
</dependency>
28+
<dependency>
29+
<groupId>io.toolisticon.kotlin.generation.itest</groupId>
30+
<artifactId>builder-itest</artifactId>
31+
<version>${project.version}</version>
32+
</dependency>
33+
<dependency>
34+
<groupId>io.toolisticon.kotlin.generation.itest</groupId>
35+
<artifactId>spi-itest</artifactId>
36+
<version>${project.version}</version>
37+
</dependency>
38+
</dependencies>
39+
40+
<build>
41+
<plugins>
42+
<plugin>
43+
<groupId>org.jacoco</groupId>
44+
<artifactId>jacoco-maven-plugin</artifactId>
45+
<executions>
46+
<execution>
47+
<id>generate-aggregate-report</id>
48+
<goals>
49+
<goal>report-aggregate</goal>
50+
</goals>
51+
<phase>post-integration-test</phase>
52+
<configuration>
53+
<includeCurrentProject>true</includeCurrentProject>
54+
<dataFileIncludes>**/*.exec</dataFileIncludes>
55+
</configuration>
56+
</execution>
57+
</executions>
58+
</plugin>
59+
</plugins>
60+
</build>
61+
</project>

_itest/builder-itest/pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@
55
<parent>
66
<groupId>io.toolisticon.kotlin.generation._</groupId>
77
<artifactId>kotlin-code-generation-itest-root</artifactId>
8-
<version>0.0.3</version>
8+
<version>0.0.4</version>
99
</parent>
1010

1111
<groupId>io.toolisticon.kotlin.generation.itest</groupId>
1212
<artifactId>builder-itest</artifactId>
1313
<name>test: ${project.artifactId}</name>
1414
<description>Integration Tests applied on specs, builders and compilation tests.</description>
1515

16-
1716
</project>

0 commit comments

Comments
 (0)