Skip to content

Commit 246be85

Browse files
committed
Empty gradle plugin.
0 parents  commit 246be85

18 files changed

+1103
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: changelogPrint
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
name: changelogPrint
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: jdk 11
14+
uses: actions/setup-java@v3
15+
with:
16+
java-version: 11
17+
distribution: 'temurin'
18+
- name: gradle caching
19+
uses: gradle/gradle-build-action@v2
20+
with:
21+
gradle-home-cache-cleanup: true
22+
- run: ./gradlew changelogPrint

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
on:
2+
pull_request:
3+
push:
4+
branches: [main]
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
jobs:
9+
build:
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
jre: [11]
14+
os: [ubuntu-latest, windows-latest]
15+
runs-on: ${{ matrix.os }}
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
- name: Install JDK ${{ matrix.jre }}
20+
uses: actions/setup-java@v3
21+
with:
22+
distribution: "temurin"
23+
java-version: ${{ matrix.jre }}
24+
- name: gradle caching
25+
uses: gradle/gradle-build-action@v2
26+
with:
27+
gradle-home-cache-cleanup: true
28+
- name: git fetch origin main
29+
run: git fetch origin main
30+
- name: gradlew build
31+
run: ./gradlew build
32+
- name: junit result
33+
uses: mikepenz/action-junit-report@v3
34+
if: always() # always run even if the previous step fails
35+
with:
36+
check_name: JUnit ${{ matrix.jre }} ${{ matrix.os }}
37+
report_paths: '*/build/test-results/*/TEST-*.xml'

.github/workflows/deploy.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# NEXUS_USER
2+
# NEXUS_PASS64 (base64 NOTE: `base64` and `openssl base64` failed, had to use Java
3+
# byte[] data = "{{password}}".getBytes(StandardCharsets.UTF_8);
4+
# String encoded = new String(Base64.getEncoder().encode(data), StandardCharsets.UTF_8);
5+
# System.out.println(encoded);
6+
# GPG_PASSPHRASE
7+
# GPG_KEY64 (base64)
8+
# gpg --export-secret-keys --armor KEY_ID | openssl base64 | pbcopy
9+
# GRADLE_KEY
10+
# GRADLE_SECRET
11+
12+
name: deploy
13+
on:
14+
workflow_dispatch:
15+
inputs:
16+
to_publish:
17+
description: 'What to publish'
18+
required: true
19+
default: 'all'
20+
type: choice
21+
options:
22+
- all
23+
24+
jobs:
25+
build:
26+
runs-on: ubuntu-latest
27+
name: deploy
28+
env:
29+
gh_token: ${{ secrets.GITHUB_TOKEN }}
30+
ORG_GRADLE_PROJECT_nexus_user: ${{ secrets.NEXUS_USER }}
31+
ORG_GRADLE_PROJECT_nexus_pass64: ${{ secrets.NEXUS_PASS64 }}
32+
ORG_GRADLE_PROJECT_gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
33+
ORG_GRADLE_PROJECT_gpg_key64: ${{ secrets.GPG_KEY64 }}
34+
steps:
35+
- uses: actions/checkout@v3
36+
- name: jdk 11
37+
uses: actions/setup-java@v3
38+
with:
39+
java-version: 11
40+
distribution: 'temurin'
41+
- name: gradle caching
42+
uses: gradle/gradle-build-action@v2
43+
with:
44+
gradle-home-cache-cleanup: true
45+
- name: git fetch origin main
46+
run: git fetch origin main
47+
- name: publish all
48+
if: "${{ github.event.inputs.to_publish == 'all' }}"
49+
run: |
50+
./gradlew :changelogPush -Prelease=true -Penable_publishing=true -Pgradle.publish.key=${{ secrets.GRADLE_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_SECRET }} --stacktrace --warning-mode all
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: "Validate Gradle Wrapper"
2+
on:
3+
push:
4+
paths:
5+
- 'gradlew'
6+
- 'gradlew.bat'
7+
- 'gradle/wrapper/'
8+
pull_request:
9+
paths:
10+
- 'gradlew'
11+
- 'gradlew.bat'
12+
- 'gradle/wrapper/'
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
validation:
19+
name: "Validation"
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v3
23+
- uses: gradle/wrapper-validation-action@v1

.gitignore

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
# mac stuff
2+
*.DS_Store
3+
4+
# GFM preview
5+
.*.md.html
6+
7+
### Gradle ###
8+
.gradle
9+
build/
10+
11+
# Ignore Gradle GUI config
12+
gradle-app.setting
13+
14+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
15+
!gradle-wrapper.jar
16+
17+
18+
### Eclipse ###
19+
*.pydevproject
20+
.metadata
21+
.gradle
22+
bin/
23+
tmp/
24+
*.tmp
25+
*.bak
26+
*.swp
27+
*~.nib
28+
local.properties
29+
.settings/
30+
.loadpath
31+
32+
# Eclipse Core
33+
.project
34+
35+
# External tool builders
36+
.externalToolBuilders/
37+
38+
# Locally stored "Eclipse launch configurations"
39+
*.launch
40+
41+
# CDT-specific
42+
.cproject
43+
44+
# JDT-specific (Eclipse Java Development Tools)
45+
.classpath
46+
47+
# Java annotation processor (APT)
48+
.factorypath
49+
50+
# PDT-specific
51+
.buildpath
52+
53+
# sbteclipse plugin
54+
.target
55+
56+
# TeXlipse plugin
57+
.texlipse
58+
59+
60+
### Intellij ###
61+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio
62+
63+
*.iml
64+
65+
## Directory-based project format:
66+
.idea/
67+
# if you remove the above rule, at least ignore the following:
68+
69+
# User-specific stuff:
70+
# .idea/workspace.xml
71+
# .idea/tasks.xml
72+
# .idea/dictionaries
73+
74+
# Sensitive or high-churn files:
75+
# .idea/dataSources.ids
76+
# .idea/dataSources.xml
77+
# .idea/sqlDataSources.xml
78+
# .idea/dynamic.xml
79+
# .idea/uiDesigner.xml
80+
81+
# Gradle:
82+
# .idea/gradle.xml
83+
# .idea/libraries
84+
85+
# Mongo Explorer plugin:
86+
# .idea/mongoSettings.xml
87+
88+
## File-based project format:
89+
*.ipr
90+
*.iws
91+
92+
## Plugin-specific files:
93+
94+
# IntelliJ
95+
/out/
96+
97+
# mpeltonen/sbt-idea plugin
98+
.idea_modules/
99+
100+
# JIRA plugin
101+
atlassian-ide-plugin.xml
102+
103+
# Crashlytics plugin (for Android Studio and IntelliJ)
104+
com_crashlytics_export_strings.xml
105+
crashlytics.properties
106+
crashlytics-build.properties
107+
108+
109+
### NetBeans ###
110+
nbproject/private/
111+
build/
112+
nbbuild/
113+
dist/
114+
nbdist/
115+
nbactions.xml
116+
nb-configuration.xml
117+
.nb-gradle/

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Webtools releases
2+
3+
## [Unreleased]
4+
5+
First ever release

CODE_OF_CONDUCT.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [https://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: https://contributor-covenant.org
46+
[version]: https://contributor-covenant.org/version/1/4/

CONTRIBUTING.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Contributing to Webtools
2+
3+
Pull requests are welcome, preferably against `main`.
4+
5+
## Build instructions
6+
7+
It's a bog-standard gradle build.
8+
9+
## License
10+
11+
By contributing your code, you agree to license your contribution under the terms of the APLv2: https://github.com/diffplug/durian/blob/main/LICENSE
12+
13+
All files are released with the Apache 2.0 license as such:
14+
15+
```
16+
Copyright 2024 DiffPlug
17+
18+
Licensed under the Apache License, Version 2.0 (the "License");
19+
you may not use this file except in compliance with the License.
20+
You may obtain a copy of the License at
21+
22+
https://www.apache.org/licenses/LICENSE-2.0
23+
24+
Unless required by applicable law or agreed to in writing, software
25+
distributed under the License is distributed on an "AS IS" BASIS,
26+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27+
See the License for the specific language governing permissions and
28+
limitations under the License.
29+
```

0 commit comments

Comments
 (0)