Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/publish-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Publish Main to https://maven.minecrafttas.com/main
name: Publish Main

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
if: github.repository == 'MinecraftTAS/BigArrayList'
steps:
- uses: actions/checkout@v4
- name: Set up JDK 23 for x64
uses: actions/setup-java@v4
with:
java-version: '23'
distribution: 'temurin'
architecture: x64
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 8.13
- name: Publish
run: gradle publishAllPublicationsToMinecrafttasMainRepository -Prelease=true -PminecrafttasMainUsername=${{ secrets.MAVEN_NAME }} -PminecrafttasMainPassword=${{ secrets.MAVEN_SECRET }}
23 changes: 23 additions & 0 deletions .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Publish snapshot to https://maven.minecrafttas.com/snapshots
name: Publish Snapshot

on: [push]

jobs:
build:
runs-on: ubuntu-latest
if: github.repository == 'MinecraftTAS/BigArrayList'
steps:
- uses: actions/checkout@v4
- name: Set up JDK 23 for x64
uses: actions/setup-java@v4
with:
java-version: '23'
distribution: 'temurin'
architecture: x64
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 8.13
- name: Publish
run: gradle publishAllPublicationsToMinecrafttasSnapshotsRepository -PminecrafttasSnapshotsUsername=${{ secrets.MAVEN_NAME }} -PminecrafttasSnapshotsPassword=${{ secrets.MAVEN_SECRET }}
21 changes: 21 additions & 0 deletions .github/workflows/report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: report
run-name: Upload Test Report
on:
workflow_run:
workflows: [test]
types: [completed]

permissions:
contents: read
actions: read
checks: write
jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: dorny/[email protected]
with:
artifact: TestResult
name: Tests
path: '*.xml'
reporter: java-junit
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: test

on:
pull_request:
branches:
- develop


jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 23 for x64
uses: actions/setup-java@v4
with:
java-version: '23'
distribution: 'temurin'
architecture: x64
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: 8.13
- name: Build
run: gradle build
- name: Upload Test Report
uses: actions/upload-artifact@v4
if: always()
with:
name: TestResult
path: build/test-results/test/*.xml
retention-days: 1
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
bin
.gradle/
.settings
.classpath
.project
.metadata
.factorypath

build/
bin/
memory/
Binary file removed BigArrayList-1.4.jar
Binary file not shown.
48 changes: 40 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,22 +1,54 @@

plugins {
id 'java'
id 'idea'
id 'java-gradle-plugin'
id 'maven-publish'
}

def snapshot = project.release=="true" ? "" : "-SNAPSHOT"
version = project.version+snapshot
group="com.dselent"

sourceCompatibility = targetCompatibility = 8

repositories {
mavenCentral()
}

test {
useJUnitPlatform()
}

dependencies {
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.9.3'
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.3'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}

java {
withSourcesJar()
withJavadocJar()
}



publishing {
repositories {
maven {
name = "minecrafttasSnapshots"
url = "https://maven.minecrafttas.com/snapshots"
credentials(PasswordCredentials)
authentication {
basic(BasicAuthentication)
}
}
maven {
name = "minecrafttasMain"
url = "https://maven.minecrafttas.com/main"
credentials(PasswordCredentials)
authentication {
basic(BasicAuthentication)
}
}
}
}
20 changes: 0 additions & 20 deletions doc/allclasses-frame.html

This file was deleted.

20 changes: 0 additions & 20 deletions doc/allclasses-noframe.html

This file was deleted.

Loading