Skip to content

Commit

Permalink
refactor(generator): Update generator; update LICENSE; add test
Browse files Browse the repository at this point in the history
  • Loading branch information
squid233 committed Jan 1, 2025
1 parent 462ada4 commit 1128ced
Show file tree
Hide file tree
Showing 105 changed files with 6,812 additions and 3,602 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
with:
name: build-reports-${{ runner.os }}-jdk${{ matrix.java }}
path: |
modules/samples/build/reports/
modules/**/build/reports/
- name: Capture build artifacts
uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022-2024 Overrun Organization
Copyright (c) 2022-2025 Overrun Organization

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
21 changes: 16 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* MIT License
*
* Copyright (c) 2025 Overrun Organization
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*/

plugins {
`java-platform`
`maven-publish`
Expand Down Expand Up @@ -35,11 +51,6 @@ allprojects {
links("https://download.java.net/java/early_access/$jdkEarlyAccessDoc/docs/api/")
}

links(
"https://over-run.github.io/memstack/",
"https://over-run.github.io/marshal/"
)

tags(
"glfw.callback_signature:m:Callback signature:",
"glfw.errors:m:Errors:",
Expand Down
20 changes: 20 additions & 0 deletions buildSrc/src/main/kotlin/module.conventions.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* MIT License
*
* Copyright (c) 2025 Overrun Organization
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*/

import org.gradle.plugins.ide.idea.model.IdeaModel

plugins {
Expand All @@ -17,6 +33,7 @@ val jdkEnablePreview: String by rootProject
val targetJavaVersion = jdkVersion.toInt()

val jetbrainsAnnotationsVersion: String by rootProject
val junitVersion: String by rootProject

group = projGroupId
version = projVersion
Expand All @@ -30,6 +47,8 @@ repositories {

dependencies {
compileOnly("org.jetbrains:annotations:$jetbrainsAnnotationsVersion")
testImplementation("org.junit.jupiter:junit-jupiter:$junitVersion")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

tasks.withType<JavaCompile> {
Expand All @@ -40,6 +59,7 @@ tasks.withType<JavaCompile> {

tasks.withType<Test> {
if (jdkEnablePreview.toBoolean()) jvmArgs("--enable-preview")
useJUnitPlatform()
}

extensions.configure<JavaPluginExtension>("java") {
Expand Down
17 changes: 17 additions & 0 deletions buildSrc/src/main/kotlin/submodule.conventions.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* MIT License
*
* Copyright (c) 2025 Overrun Organization
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*/

plugins {
`java-library`
}
Expand All @@ -6,5 +22,6 @@ val projVersion: String by rootProject

dependencies {
compileOnly(project(":core"))
testImplementation(project(":core"))
constraints { api("io.github.over-run:overrungl:$projVersion") }
}
Loading

0 comments on commit 1128ced

Please sign in to comment.