Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudshiftchris committed Jul 23, 2024
0 parents commit e49c936
Show file tree
Hide file tree
Showing 12 changed files with 714 additions and 0 deletions.
172 changes: 172 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
# Reference documentation for gitattributes: https://git-scm.com/docs/gitattributes

#
# Exclude files from exporting
#
.gitattributes export-ignore
.gitignore export-ignore

#
# Enable syntax highlighting
#
*.gitattributes linguist-language=gitattributes


# default is unix line endings for all files

* text eol=lf

# Text files where line endings should be preserved
*.patch -text

#
# The above will handle all files NOT found below
# https://help.github.com/articles/dealing-with-line-endings/
# https://github.com/Danimoth/gitattributes

# These are explicitly windows files and should use crlf
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf

# These files are text and should be normalized (Convert crlf => lf)
*.bash text eol=lf
*.sh text eol=lf

### CSS
*.css text diff=css

### HTML
*.htm text diff=html
*.html text diff=html

### Java
*.java text diff=java
*.gradle text diff=java
*.gradle.kts text diff=java

### Kotlin
*.kt text diff=kotlin
*.kts text diff=kotlin

### C
*.c text diff=c
*.h text diff=c

### C++
*.cc text diff=cpp
*.cxx text diff=cpp
*.cpp text diff=cpp
*.c++ text diff=cpp
*.hpp text diff=cpp
*.h++ text diff=cpp
*.hh text diff=cpp

### Golang
*.go text diff=golang

### Markdown
*.md text diff=markdown

### Perl
*.pl text diff=perl
*.pm text diff=perl

### Python
*.py text diff=python
*.pxd text diff=python
*.py text diff=python
*.py3 text diff=python
*.pyw text diff=python
*.pyx text diff=python
*.pyz text diff=python
*.pyi text diff=python

### PHP
*.php text diff=php

### Ruby
*.rb text diff=ruby

### C#
*.cs text diff=csharp

### Rust
*.rs text diff=rust

### Swift
*.swift text diff=swift


# These files are binary and should be left untouched
# (binary is a macro for -text -diff)
*.a binary
*.lib binary
*.icns binary
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.mov binary
*.mp4 binary
*.mp3 binary
*.flv binary
*.fla binary
*.swf binary
*.gz binary
*.zip binary
*.jar binary
*.tar binary
*.tar.gz binary
*.7z binary
*.ttf binary
*.pyc binary
*.gpg binary
*.class binary
*.war binary
*.ttf binary
*.eot binary
*.otf binary
*.woff binary
*.woff2 binary

# Compiled Object files
*.slo binary
*.lo binary
*.o binary
*.obj binary

# Precompiled Headers
*.gch binary
*.pch binary

# Compiled Dynamic libraries
*.so binary
*.dylib binary
*.dll binary

# Compiled Static libraries
*.lai binary
*.la binary
*.a binary
*.lib binary

# Executables
*.exe binary
*.out binary
*.app binary

# Python
*.db binary
*.p binary
*.pkl binary
*.pickle binary
*.pyc binary
*.pyd binary
*.pyo binary


# Special
modules/frontend/phpcgi/src/main/resources/php-cgi-debug/macos/php-cgi binary

74 changes: 74 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@

name: 'Build Kontour'
on:
pull_request: {}
permissions:
contents: 'write'
jobs:
build-first:
runs-on: 'ubuntu-latest'
steps:
# https://github.com/hmarr/debug-action
- uses: 'hmarr/debug-action@v3' # v3.0.0

# https://github.com/actions/checkout
- name: 'checkout'
uses: 'actions/checkout@v4' # v4.1.7

# https://github.com/actions/setup-java
- name: 'Set up JDK'
uses: 'actions/setup-java@v4' # v4.2.1
with:
java-version: '21'
distribution: 'temurin'

# https://github.com/gradle/actions/tree/main/setup-gradle
- name: 'Set up Gradle'
uses: 'gradle/actions/setup-gradle@6c9e5473141d9a428221ea9a229a025d7bf331d4' # v4.0.0-beta.1
with:
validate-wrappers: true

# https://github.com/gradle/actions/tree/main/dependency-submission
# - name: "Generate and submit dependency graph"
# uses: 'gradle/actions/setup-gradle@6c9e5473141d9a428221ea9a229a025d7bf331d4' # v4.0.0-beta.1
# env:
# dependency-graph-report-dir: "${{ github.workspace }}/build/dependency-graph-reports"
# dependency-graph-exclude-projects: "^:(build-logic|buildSrc|.*[Tt]test.*)"
# dependency-graph-exclude-configurations: ".*[Tt]est.*Classpath"

- name: 'Build'
run: './gradlew build --info --scan --stacktrace --build-file build.gradle.kts'

build-second:
runs-on: 'ubuntu-latest'
steps:
# https://github.com/hmarr/debug-action
- uses: 'hmarr/debug-action@v3' # v3.0.0

# https://github.com/actions/checkout
- name: 'checkout'
uses: 'actions/checkout@v4' # v4.1.7

# https://github.com/actions/setup-java
- name: 'Set up JDK'
uses: 'actions/setup-java@v4' # v4.2.1
with:
java-version: '21'
distribution: 'temurin'

# https://github.com/gradle/actions/tree/main/setup-gradle
- name: 'Set up Gradle'
uses: 'gradle/actions/setup-gradle@6c9e5473141d9a428221ea9a229a025d7bf331d4' # v4.0.0-beta.1
with:
validate-wrappers: true

# https://github.com/gradle/actions/tree/main/dependency-submission
# - name: "Generate and submit dependency graph"
# uses: 'gradle/actions/setup-gradle@6c9e5473141d9a428221ea9a229a025d7bf331d4' # v4.0.0-beta.1
# env:
# dependency-graph-report-dir: "${{ github.workspace }}/build/dependency-graph-reports"
# dependency-graph-exclude-projects: "^:(build-logic|buildSrc|.*[Tt]test.*)"
# dependency-graph-exclude-configurations: ".*[Tt]est.*Classpath"

- name: 'Build'
run: './gradlew build --info --scan --stacktrace --build-file build-second.gradle.kts'
56 changes: 56 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Kotlin 2.0+
.kotlin/

####################
# IntelliJ
####################
.idea
*.iws
out/
.idea_modules

####################
# Java
####################
*.class
*.log
*.ctxt
.mtj.tmp/
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
*.java.hsp
*.sonarj
jxl.log
jmx.log
derby.log
test-output/
hs_err_pid*

####################
# Gradle
####################
.gradle
build/
**/build/
!/gradle/wrapper/**
!/gradlew
!/gradlew.bat
!gradle/build-logic/src/**

####################
# macOS
####################
.DS_Store

####################
# Eclipse
####################
.classpath
.project


4 changes: 4 additions & 0 deletions build-second.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

plugins {
kotlin("jvm") version "1.9.25"
}
5 changes: 5 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@


plugins {
kotlin("jvm") version "1.8.22"
}
14 changes: 14 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version=0.1.0-SNAPSHOT

org.gradle.vfs.watch=true
org.gradle.warning.mode=all
org.gradle.parallel=true
org.gradle.configureondemand=false
org.gradle.daemon=true
org.gradle.caching=true
org.gradle.configuration-cache=true
org.gradle.kotlin.dsl.allWarningsAsErrors=true
systemProp.file.encoding=UTF-8

# force standard provisioning of JDKs for toolchain tasks (separate from JVM that Gradle uses)
org.gradle.java.installations.auto-detect=false
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit e49c936

Please sign in to comment.