Skip to content

Commit

Permalink
Merge pull request #1 from SimplyVanilla/feat/init
Browse files Browse the repository at this point in the history
feat: initial commit
  • Loading branch information
Netherwhal authored Feb 29, 2024
2 parents c4e2a27 + 9c47afb commit 4ea7a56
Show file tree
Hide file tree
Showing 19 changed files with 847 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
root = true

[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
indent_size = 2
indent_style = space

[Makefile]
indent_size = 4
indent_style = tab

[*.{java,html}]
indent_size = 4

[build.gradle]
indent_size = 4

[*.md]
trim_trailing_whitespace = false
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "daily"
35 changes: 35 additions & 0 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and Publish

on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main

env:
TERM: xterm-256color

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build jar
run: make

# - name: Report coverage
# run: make coveralls
# env: # Or as an environment variable
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: build/libs/*.jar
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.DS_Store
*~
.attach_pid*
/.idea/
/.env

# Java/Build
/.gradle/
/build/
/run
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
SHELL := bash


.PHONY: all
all: build


.PHONY: build
build:
./gradlew build


.PHONY: coveralls
coveralls:
./gradlew jacocoTestReport coveralls


.PHONY: wrapper
wrapper:
./gradlew wrapper
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# SimplyTAB
# SimplyTAB
65 changes: 65 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import org.apache.tools.ant.filters.ReplaceTokens

plugins {
id 'java'
id 'io.papermc.paperweight.userdev' version '1.5.11'
id 'xyz.jpenilla.run-paper' version '2.2.3'
id "com.github.johnrengelman.shadow" version "8.1.1"
}

group 'net.simplyvanilla'
version '0.1.0'

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}

compileJava.options.encoding = 'UTF-8'

tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}

repositories {
mavenCentral()

maven {
url 'https://repo.papermc.io/repository/maven-public/'
}
maven {
url 'https://jitpack.io/'
}
}

dependencies {
// compileOnly 'io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT'
compileOnly 'io.github.miniplaceholders:miniplaceholders-api:2.2.3'
paperweight.foliaDevBundle("1.20.4-R0.1-SNAPSHOT")

implementation("com.github.megavexnetwork.scoreboard-library:scoreboard-library-api:2.0.2")
runtimeOnly("com.github.megavexnetwork.scoreboard-library:scoreboard-library-implementation:2.0.2")
runtimeOnly("com.github.megavexnetwork.scoreboard-library:scoreboard-library-modern:2.0.2")
}

shadowJar {
archiveClassifier.set('')
}

tasks {
assemble {
dependsOn(reobfJar)
}
build {
dependsOn(shadowJar)
}
}

runPaper.folia.registerTask()

processResources {
duplicatesStrategy = 'include'

from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}
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.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 4ea7a56

Please sign in to comment.