Skip to content

Commit ead2212

Browse files
committed
Merge branch 'release/0.0.1'
2 parents 1aee5e9 + bf3ad9b commit ead2212

File tree

116 files changed

+5203
-185
lines changed

Some content is hidden

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

116 files changed

+5203
-185
lines changed

.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 = 160
16+
max_line_length = 200
1717

1818
[*.md]
1919
trim_trailing_whitespace = false

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Please use one of the following templates:
22

3-
https://github.com/GITHUB_ORGANIZATION/GITHUB_REPOSITORY/issues/new/choose
3+
https://github.com/toolisticon/kotlin-code-generation/issues/new/choose

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@ updates:
77
open-pull-requests-limit: 10
88
default-labels:
99
- "Type: dependencies"
10+
- package-ecosystem: github-actions
11+
directory: "/"
12+
schedule:
13+
interval: daily
14+
default-labels:
15+
- "Type: dependencies"

.github/workflows/master.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242
# Publish release
4343
- name: Deploy a new release version to Maven Central
44-
run: ./mvnw clean deploy -B -DskipTests -DskipExamples -Prelease -Dgpg.keyname="${{ secrets.GPG_KEYNAME }}" -Dgpg.passphrase="${{ secrets.GPG_PASSPHRASE }}" -ntp
44+
run: ./mvnw clean deploy -B -ntp -DskipTests -DskipItest -DskipExamples -Prelease -Dgpg.keyname="${{ secrets.GPG_KEYNAME }}" -Dgpg.passphrase="${{ secrets.GPG_PASSPHRASE }}"
4545
env:
4646
OSS_CENTRAL_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
4747
OSS_CENTRAL_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}

.github/workflows/release-notes.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
steps:
1010
- name: Checkout code
1111
uses: actions/checkout@master
12+
1213
- name: Create Release Notes Markdown
1314
uses: docker://decathlon/release-notes-generator-action:3.1.5
1415
env:
@@ -23,7 +24,7 @@ jobs:
2324
echo "VERSION=$VERSION" >> $GITHUB_ENV
2425
- name: Create a Draft Release Notes on GitHub
2526
id: create_release
26-
uses: actions/create-release@v1
27+
uses: actions/create-release@v1.1.4
2728
env:
2829
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
2930
with:

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,3 @@ build/
4343

4444
### DEV
4545
_tmp/
46-
.repository/

.mvn/jvm.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--add-opens=java.base/java.lang=ALL-UNNAMED
2+
--add-opens=java.base/java.io=ALL-UNNAMED

.mvn/wrapper/maven-wrapper.properties

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
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-
# http://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.5/apache-maven-3.9.5-bin.zip
18-
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
1+
wrapperVersion=3.3.2
2+
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

NOTICE

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
This product includes software developed by ZacSweers (https://github.com/ZacSweers).
3+
`dev.zacsweers.kctfork:core:<latest-version>` is published under the MPL-2 license which is considered to be
4+
compatible with the APACHE LICENSE.
5+

README.md

Lines changed: 63 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,79 @@
1-
# BASE_ARTIFACT_ID
2-
3-
Template repository for usage in organizations: toolisticon, holunda-io, holixon...
1+
# kotlin-code-generation
42

53
[![incubating](https://img.shields.io/badge/lifecycle-INCUBATING-orange.svg)](https://github.com/holisticon#open-source-lifecycle)
6-
[![Build Status](https://github.com/GITHUB_ORGANIZATION/GITHUB_REPOSITORY/workflows/Development%20branches/badge.svg)](https://github.com/GITHUB_ORGANIZATION/GITHUB_REPOSITORY/actions)
4+
[![Build Status](https://github.com/toolisticon/kotlin-code-generation/workflows/Development%20branches/badge.svg)](https://github.com/toolisticon/kotlin-code-generation/actions)
75
[![sponsored](https://img.shields.io/badge/sponsoredBy-Holisticon-RED.svg)](https://holisticon.de/)
8-
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/BASE_GROUP_ID/BASE_ARTIFACT_ID/badge.svg)](https://maven-badges.herokuapp.com/maven-central/BASE_GROUP_ID/BASE_ARTIFACT_ID)
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)
97

10-
This repository is a **template repository** designed to be a template for the next project.
8+
**Usage:**
119

12-
## How to use
10+
```xml
11+
<dependencyManagement>
12+
<dependencies>
13+
<dependency>
14+
<groupId>io.toolisticon.kotlin.generation</groupId>
15+
<artifactId>kotlin-code-generation-bom</artifactId>
16+
<version>LATEST_VERSION</version>
17+
<scope>import</scope>
18+
<type>pom</type>
19+
</dependency>
20+
</dependencies>
21+
</dependencyManagement>
22+
```
1323

14-
* create a new repo on github (can be in any organization). Choose this project as template repository. Copy all branches, so the `master`exists in your repo (for the github actions)
15-
* on the command line: clone your new repo locally
16-
* in the `setup.sh` script: set your organization, repository and base package
17-
* run the `setup.sh` script, all placeholders are filled with your information
18-
* delete the setup-script
19-
* Update the `README.md`
20-
* in the `developers` section of the `pom.xml`: mention yourself ... it is your project.
24+
## Documentation
2125

22-
## Things to change after usage of template
26+
* see [kotlin-poet](https://square.github.io/kotlinpoet/)
2327

24-
To change the following values, modify the placeholders in `setup.sh` and run it.
25-
This is a one-time operation, you can safely delete the `setup.sh` file afterwards.
28+
## Features
2629

27-
Of course, you can also edit manually .... and do not forget to change this `README.md` with YOUR project specific information :-).
30+
* KotlinAnnotationSpec
31+
* KotlinAnnotationSpecBuilder
32+
* KotlinFileSpec
33+
* KotlinFileSpecBuilder
34+
* KotlinFunSpec
35+
* KotlinFunSpecBuilder
36+
* KotlinParameterSpec
37+
* KotlinParameterSpecBuilder
38+
* KotlinPropertySpec
39+
* KotlinPropertySpecBuilder
2840

29-
### Maven pom.xml
3041

31-
* Maven coordinates: `groupId`, `artifactId` and `version`
32-
* Main description: `name`, `url`, `description`
33-
* SCM: `connection`, `url`, `developerConnection`
3442

35-
### Issue Template
43+
## Roadmap
3644

37-
* correct the URL to repo
45+
### Specs to support
3846

39-
### Issue Labels
47+
* com/squareup/kotlinpoet/TypeAliasSpec
48+
* com/squareup/kotlinpoet/TypeSpec
4049

41-
* Check the release-notes.yml for details, but create the following labels: Type: dependencies, Type: bug, Type: documentation, Type: question, Type: enhancement
50+
### Builders to implement
4251

52+
* com/squareup/kotlinpoet/AnnotationSpec$Builder
53+
* Taggable.Builder<Builder>
54+
* com/squareup/kotlinpoet/CodeBlock$Builder
55+
* None
56+
* com/squareup/kotlinpoet/FileSpec$Builder
57+
* Annotatable.Builder<Builder>
58+
* Taggable.Builder<Builder>
59+
* TypeSpecHolder.Builder<Builder>
60+
* com/squareup/kotlinpoet/FunSpec$Builder
61+
* Annotatable.Builder<Builder>
62+
* ContextReceivable.Builder<Builder>
63+
* Documentable.Builder<Builder>
64+
* Taggable.Builder<Builder>
65+
* OriginatingElementsHolder.Builder<Builder>
66+
* com/squareup/kotlinpoet/ParameterSpec$Builder
67+
* Annotatable.Builder<Builder>
68+
* Documentable.Builder<Builder>
69+
* Taggable.Builder<Builder>
70+
* com/squareup/kotlinpoet/PropertySpec$Builder
71+
* Annotatable.Builder<Builder>
72+
* ContextReceivable.Builder<Builder>
73+
* Documentable.Builder<Builder>
74+
* OriginatingElementsHolder.Builder<Builder>
75+
* Taggable.Builder<Builder>
76+
* com/squareup/kotlinpoet/TypeAliasSpec$Builder
77+
* Annotatable.Builder<Builder>
78+
* Documentable.Builder<Builder>
79+
* Taggable.Builder<Builder>

0 commit comments

Comments
 (0)