Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
90e62eb
Remove dead RandomNamePlugin GMGen wrapper
Vest May 20, 2026
6f8e976
Rename engine package pcgen.core.doomsdaybook to pcgen.core.namegen
Vest May 20, 2026
5dabbcd
Rename UI package pcgen.gui2.doomsdaybook to pcgen.gui2.namegen
Vest May 20, 2026
89bef70
Extract headless NameGenerator from Swing panel
Vest May 20, 2026
30140d3
Add unit tests for NameGenerator and NameGenDataLoader
Vest May 20, 2026
5789db9
Replace JDOM2 with javax.xml.parsers in NameGenDataLoader
Vest May 20, 2026
8221300
Drop the JDOM2 dependency
Vest May 20, 2026
e86167d
Delete vestigial Src.iml
Vest May 20, 2026
cee570c
Drop the Gradle 'idea' plugin
Vest May 20, 2026
56df809
Add JavaFX random-name panel, dialog, and controller
Vest May 20, 2026
1198b46
Switch random-name callers to the JavaFX dialog; delete Swing UI
Vest May 20, 2026
e7ab5be
Load random-name dialog FXML directly into a Stage
Vest May 20, 2026
c139dee
Add tests for the random-name panel
Vest May 20, 2026
47c6d8a
Add Advanced Structure override to the random-name panel
Vest May 20, 2026
7aadcc4
Host random-name dialog in a Swing JDialog
Vest May 24, 2026
4c5699f
Fix macOS Cmd+Q freezing the save dialog
Vest May 24, 2026
4e46456
Drop name fallback for missing meaning/pronunciation
Vest May 24, 2026
d829426
Merge remote-tracking branch 'upstream/master' into drop-namegen
Vest May 24, 2026
d6cf2e2
Walk XML children once when filtering by tag
Vest May 24, 2026
db5e503
Default missing weight to 1 and harden XML parser against XXE
Vest May 24, 2026
0299fa3
Replace VariableHashMap engine with record-based namegen model
Vest May 24, 2026
cdbe72c
Fix broken GETLIST/GETRULE references in random-name data
Vest May 24, 2026
f9668ec
Refresh structure combo on title change
Vest May 24, 2026
b8676e6
Fix slowtest task discovery and share JVM in per-game inttests
Vest May 24, 2026
c6a269c
Drop unused lobobrowser cobra artifact and its local maven repo
Vest May 26, 2026
68405ac
Parse random-name XML files lazily on selection
Vest May 31, 2026
11f7d77
Smoke-test every shipped random-name ruleset
Vest May 31, 2026
dcb37f8
Address Sonar findings in random-name loader
Vest May 31, 2026
37ee295
Extract ScanState helper from NameGenIndex.scanStream
Vest May 31, 2026
0382529
Use StringUtils.defaultString instead of a local helper
Vest May 31, 2026
f4e0836
Document non-obvious invariants in scanStream and ensureFileParsed
Vest May 31, 2026
9f03c98
Use Streams for the pure passes in NameGenDataLoader.load
Vest May 31, 2026
0327da8
Format Kind enum body to satisfy LeftCurlyCheck
Vest May 31, 2026
25b9a0d
Modernize NameGenDataLoader: lambda DTD resolver + stream local map
Vest May 31, 2026
703be81
Use Streams in remaining namegen builders
Vest May 31, 2026
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
49 changes: 8 additions & 41 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import groovy.json.JsonSlurper

import org.apache.tools.ant.filters.FixCrLfFilter
import org.apache.tools.ant.taskdefs.condition.Os
import org.gradle.plugins.ide.idea.model.ProjectLibrary

import de.undercouch.gradle.tasks.download.Download

Expand All @@ -30,7 +29,6 @@ plugins {
id 'com.github.spotbugs' version '6.5.5' // Spotbugs for Java
id 'maven-publish' // Publishing to Maven Central
id 'pmd' // PMD for Java, configured further below
id 'idea' // For IntelliJ IDEA users
id 'de.undercouch.download' version '5.7.0' // Shows download percentage
id 'com.github.ben-manes.versions' version '0.54.0' // Checks versions for plugins and dependencies
id 'com.dorongold.task-tree' version '4.0.1' // Prints the task dependency tree
Expand Down Expand Up @@ -102,10 +100,6 @@ repositories {
url = 'http://pc-gen.org/librepo/'
allowInsecureProtocol = true
}
maven {
name = 'local'
url = 'installers'
}
// Use Maven plugin to reference JBoss artifact repository
// TODO Which libs do we pull from here?
maven {
Expand All @@ -115,8 +109,6 @@ repositories {
}

// Define the source sets for each task/module
// TODO even though we have the idea plugin, IntelliJ doesn't reference
// these source sets whether you run that task or not.
sourceSets {
// The main build
main {
Expand Down Expand Up @@ -232,7 +224,6 @@ dependencies {
implementation 'net.sf.saxon:Saxon-HE:12.9'
implementation 'org.scijava:jep:2.4.2'
implementation 'org.freemarker:freemarker:2.3.34'
implementation 'org.jdom:jdom2:2.0.6.1'
implementation 'net.sourceforge.argparse4j:argparse4j:0.9.0'
implementation 'org.controlsfx:controlsfx:11.2.3'
implementation project(':PCGen-base')
Expand Down Expand Up @@ -313,7 +304,7 @@ jlink {
addExtraDependencies('javafx')
forceMerge('jep', 'fop', 'Saxon-HE',
'commons-lang3', 'spring',
'freemarker', 'jdom2', 'argparse4j', 'xmlunit', 'controlsfx',
'freemarker', 'argparse4j', 'xmlunit', 'controlsfx',
'annotations', 'spotbugs', 'xmlresolver')

mergedModule {
Expand Down Expand Up @@ -697,18 +688,20 @@ tasks.register("slowtest", Test) {

tasks.register("datatest", Test) {
dependsOn jar
useJUnitPlatform()
testClassesDirs = sourceSets.slowtest.output.classesDirs
classpath = sourceSets.slowtest.runtimeClasspath
include 'main/pcgen/persistence/lst/DataTest.class'
include 'main/pcgen/persistence/lst/DataLoadTest.class'
include 'pcgen/persistence/lst/DataTest.class'
include 'pcgen/persistence/lst/DataLoadTest.class'
}

tasks.register("inttest", Test) {
dependsOn jar
useJUnitPlatform()
testClassesDirs = sourceSets.slowtest.output.classesDirs
classpath = sourceSets.slowtest.runtimeClasspath
forkEvery = 1
include 'slowtest/pcgen/inttest/**/*Test.class'
include 'pcgen/inttest/**/*Test.class'
}

// Per-game-mode inttest variants. Each runs only the inttest classes for one
Expand All @@ -723,10 +716,10 @@ tasks.register("inttest", Test) {
].each { taskName, gameDir ->
tasks.register(taskName, Test) {
dependsOn jar
useJUnitPlatform()
testClassesDirs = sourceSets.slowtest.output.classesDirs
classpath = sourceSets.slowtest.runtimeClasspath
forkEvery = 1
include "slowtest/pcgen/inttest/${gameDir}/*Test.class"
include "pcgen/inttest/${gameDir}/*Test.class"
}
}

Expand Down Expand Up @@ -835,32 +828,6 @@ tasks.named("dependencyUpdates") {
}
}

// Support for creating IntelliJ IDEA files.
idea {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With better Gradle script we don't need Idea as a separate plugin anymore.

project {
def javafxLib = layout.projectDirectory.dir("mods/lib")
.asFileTree.matching { include "*.jar" }
.files

def projectLibrary = new ProjectLibrary()
projectLibrary.name = "lib"
projectLibrary.classes += javafxLib

projectLibraries += [ projectLibrary ]
}

module {
testSources.from(project.sourceSets.itest.java.srcDirs,
project.sourceSets.slowtest.java.srcDirs)

iml.withXml {
def module = asNode()
def component = module.find {it.@name == 'NewModuleRootManager'}
def orderEntry = component.appendNode('orderEntry', [ type: 'library', scope: 'RUNTIME', name:'lib', level:'project'])
}
}
}

// Use the gradle wrapper
tasks.named("wrapper") {
distributionType = Wrapper.DistributionType.ALL
Expand Down
186 changes: 0 additions & 186 deletions code/src/Src.iml

This file was deleted.

2 changes: 1 addition & 1 deletion code/src/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

requires org.apache.commons.lang3;
requires freemarker;
requires org.jdom2;
requires net.sourceforge.argparse4j;
requires org.controlsfx.controls;
requires org.apache.xmlgraphics.fop.core;
Expand Down Expand Up @@ -72,6 +71,7 @@
opens pcgen.gui3.component;
opens pcgen.gui3.core;
opens pcgen.gui3.dialog;
opens pcgen.gui3.namegen;
opens pcgen.gui3.preferences;
opens pcgen.gui3.preloader;
opens pcgen.gui3.utilty;
Expand Down
63 changes: 0 additions & 63 deletions code/src/java/pcgen/core/doomsdaybook/CRRule.java

This file was deleted.

Loading
Loading