Skip to content

Commit

Permalink
[major] normalize all Copper Leaf repos
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbrooks12 committed May 22, 2021
1 parent b3c8552 commit 2707705
Show file tree
Hide file tree
Showing 178 changed files with 2,264 additions and 1,980 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[*.{kt,kts}]
insert_final_newline=true
max_line_length=120
disabled_rules=no-wildcard-imports,import-ordering
56 changes: 56 additions & 0 deletions .github/workflows/pr_master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# On PRs to master, run tests on all supported platforms. Also do a dry publish of Orchid to validate its publishing
# pipeline is configured correctly and changelog entries are present

name: 'PR to `master` (Verify Release)'

on:
pull_request:
branches: ['master']

jobs:
buildCachesOnAll:
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest']
name: 'Build on ${{ matrix.os }} JDK 8'
runs-on: '${{ matrix.os }}'
steps:
- uses: 'actions/checkout@v2'
- run: 'git fetch --prune --unshallow --tags'
- name: 'Set up JDK 8'
uses: 'actions/setup-java@v2'
with:
distribution: 'adopt'
java-version: 8
- name: 'Cache Gradle packages'
uses: 'actions/cache@v1'
with:
path: '~/.gradle/caches'
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: '${{ runner.os }}-gradle'
- name: 'Assemble with Gradle'
run: './gradlew assemble --no-daemon --stacktrace -Prelease'
testOnAll:
needs: ['buildCachesOnAll']
strategy:
matrix:
java: [8, 9, 10, 11, 12, 13, 14, 15, 16]
os: ['ubuntu-latest', 'macos-latest']
name: 'Test on ${{ matrix.os }} JDK ${{ matrix.java }}'
runs-on: '${{ matrix.os }}'
steps:
- uses: 'actions/checkout@v2'
- run: 'git fetch --prune --unshallow --tags'
- name: 'Set up JDK ${{ matrix.java }}'
uses: 'actions/setup-java@v2'
with:
distribution: 'adopt'
java-version: '${{ matrix.java }}'
- name: 'Cache Gradle packages'
uses: 'actions/cache@v1'
with:
path: '~/.gradle/caches'
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: '${{ runner.os }}-gradle'
- name: 'Run checks with Gradle'
run: './gradlew check :docs:publish --no-daemon --stacktrace -Prelease -PorchidEnvironment=prod -PorchidDryDeploy=true -PorchidDiagnose=true'
57 changes: 57 additions & 0 deletions .github/workflows/push_dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# On pushes to dev, or PRs to master or dev, run tests on all supported platforms

name: 'Push/PR to `dev` (Verify Integration)'

on:
push:
branches: ['dev']
pull_request:
branches: ['dev']

jobs:
buildCachesOnAll:
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest']
name: 'Build on ${{ matrix.os }} JDK 8'
runs-on: '${{ matrix.os }}'
steps:
- uses: 'actions/checkout@v2'
- run: 'git fetch --prune --unshallow --tags'
- name: 'Set up JDK 8'
uses: 'actions/setup-java@v2'
with:
distribution: 'adopt'
java-version: 8
- name: 'Cache Gradle packages'
uses: 'actions/cache@v1'
with:
path: '~/.gradle/caches'
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: '${{ runner.os }}-gradle'
- name: 'Assemble with Gradle'
run: './gradlew assemble --no-daemon --stacktrace'
testOnAll:
needs: ['buildCachesOnAll']
strategy:
matrix:
java: [8, 9, 10, 11, 12, 13, 14, 15, 16]
os: ['ubuntu-latest', 'macos-latest']
name: 'Test on ${{ matrix.os }} JDK ${{ matrix.java }}'
runs-on: '${{ matrix.os }}'
steps:
- uses: 'actions/checkout@v2'
- run: 'git fetch --prune --unshallow --tags'
- name: 'Set up JDK ${{ matrix.java }}'
uses: 'actions/setup-java@v2'
with:
distribution: 'adopt'
java-version: '${{ matrix.java }}'
- name: 'Cache Gradle packages'
uses: 'actions/cache@v1'
with:
path: '~/.gradle/caches'
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: '${{ runner.os }}-gradle'
- name: 'Run checks with Gradle'
run: './gradlew check --no-daemon --stacktrace'
30 changes: 30 additions & 0 deletions .github/workflows/push_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# On pushes to `docs` branch, build and publish the Orchid documentation site

name: 'Push to `docs` (Update Docs Site)'

on:
push:
branches: ['docs']

jobs:
publishOnMacOs:
runs-on: 'macos-latest'
steps:
- uses: 'actions/checkout@v2'
- run: 'git fetch --prune --unshallow --tags'
- name: 'Set up JDK 1.8'
uses: 'actions/setup-java@v2'
with:
distribution: 'adopt'
java-version: 8
- name: 'Cache Gradle packages'
uses: 'actions/cache@v1'
with:
path: '~/.gradle/caches'
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: '${{ runner.os }}-gradle'
- name: 'Publish Orchid site'
run: './gradlew assemble :docs:publish --no-daemon --stacktrace'
env:
GITHUB_ACTOR: '${{ github.actor }}'
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
84 changes: 84 additions & 0 deletions .github/workflows/push_master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# On pushes to master, run tests on all supported platforms. If all tests pass, then publish release artifacts and
# update Orchid documentation site.

name: 'Push to `master` (Create Release)'

on:
push:
branches: ['master']

jobs:
buildCachesOnAll:
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest']
name: 'Build on ${{ matrix.os }} JDK 8'
runs-on: '${{ matrix.os }}'
steps:
- uses: 'actions/checkout@v2'
- run: 'git fetch --prune --unshallow --tags'
- name: 'Set up JDK 8'
uses: 'actions/setup-java@v2'
with:
distribution: 'adopt'
java-version: 8
- name: 'Cache Gradle packages'
uses: 'actions/cache@v1'
with:
path: '~/.gradle/caches'
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: '${{ runner.os }}-gradle'
- name: 'Assemble with Gradle'
run: './gradlew assemble --no-daemon --stacktrace -Prelease -PorchidEnvironment=prod'
testOnAll:
needs: ['buildCachesOnAll']
strategy:
matrix:
java: [8, 9, 10, 11, 12, 13, 14, 15, 16]
os: ['ubuntu-latest', 'macos-latest']
name: 'Test on ${{ matrix.os }} JDK ${{ matrix.java }}'
runs-on: '${{ matrix.os }}'
steps:
- uses: 'actions/checkout@v2'
- run: 'git fetch --prune --unshallow --tags'
- name: 'Set up JDK ${{ matrix.java }}'
uses: 'actions/setup-java@v2'
with:
distribution: 'adopt'
java-version: '${{ matrix.java }}'
- name: 'Cache Gradle packages'
uses: 'actions/cache@v1'
with:
path: '~/.gradle/caches'
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: '${{ runner.os }}-gradle'
- name: 'Run checks with Gradle'
run: './gradlew check --no-daemon --stacktrace -Prelease -PorchidEnvironment=prod'
publishOnMacOs:
runs-on: 'macos-latest'
needs: ['testOnAll']
steps:
- uses: 'actions/checkout@v2'
- run: 'git fetch --prune --unshallow --tags'
- name: 'Set up JDK 1.8'
uses: 'actions/setup-java@v2'
with:
distribution: 'adopt'
java-version: 8
- name: 'Cache Gradle packages'
uses: 'actions/cache@v1'
with:
path: '~/.gradle/caches'
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: '${{ runner.os }}-gradle'
- name: 'Publish to GitHub Packages'
run: './gradlew publish --no-daemon --stacktrace -Prelease -PorchidEnvironment=prod'
env:
GITHUB_ACTOR: '${{ github.actor }}'
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
OSSRH_USERNAME: '${{ secrets.OSSRH_USERNAME }}'
OSSRH_PASSWORD: '${{ secrets.OSSRH_PASSWORD }}'
SIGNING_KEY_ID: '${{ secrets.SIGNING_KEY_ID }}'
SIGNING_KEY: '${{ secrets.SIGNING_KEY }}'
SIGNING_PASSWORD: '${{ secrets.SIGNING_PASSWORD }}'

94 changes: 69 additions & 25 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,38 +1,82 @@
# Files for the ART/Dalvik VM
*.dex
### https://raw.github.com/github/gitignore/7792e50daeaa6c07460484704671d1dc9f0045a7/Java.gitignore

# Java class files
# Compiled class file
*.class

# Generated files
bin/
gen/
out/
# Log file
*.log

# Gradle files
.gradle/
build/
/classes/
# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.war
*.ear
*.zip
*.tar.gz
*.rar

# Local configuration file (sdk path, etc)
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
*.hprof

### https://raw.github.com/github/gitignore/7792e50daeaa6c07460484704671d1dc9f0045a7/Global/Eclipse.gitignore

.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.loadpath
.recommenders

# Proguard folder generated by Eclipse
proguard/
# External tool builders
.externalToolBuilders/

# Log Files
*.log
# Locally stored "Eclipse launch configurations"
*.launch

# Intellij
*.iml
.idea/
# PyDev specific (Python IDE for Eclipse)
*.pydevproject

# Keystore files
*.jks
# CDT-specific (C/C++ Development Tooling)
.cproject

# Google Analytics
/**/templates/meta.*
# Java annotation processor (APT)
.factorypath

.DS_Store
# PDT-specific (PHP Development Tools)
.buildpath

# sbteclipse plugin
.target

# Tern plugin
.tern-project

# TeXlipse plugin
.texlipse

# STS (Spring Tool Suite)
.springBeans

# Code Recommenders
.recommenders/

!swiftdoc/swiftdoc-formatter/src/main/resources/bin
# Scala IDE specific (Scala & Java development for Eclipse)
.cache-main
.scala_dependencies
.worksheet

.idea/
.gradle/
build/
*.iml
.DS_Store
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 1.0.0 - 2021-04-15

- Updates all to kotlin 1.4.32
18 changes: 9 additions & 9 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
BSD 3-Clause License

Copyright (c) 2018, Copper Leaf
Copyright (c) 2021, Copper Leaf
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Expand Down
Loading

0 comments on commit 2707705

Please sign in to comment.