Skip to content

Commit

Permalink
chore: Display new license agreement in About Third Party Notices
Browse files Browse the repository at this point in the history
  • Loading branch information
Griefed committed Sep 16, 2023
1 parent dec6c71 commit fa13be3
Show file tree
Hide file tree
Showing 5 changed files with 1,080 additions and 169 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ tasks.register<Copy>("copyPluginsApiUnitTests") {

tasks.register<Delete>("cleanLicenseReport") {
delete(licenseReports)
delete(projectDir.resolve("serverpackcreator-gui/src/main/resources/de/griefed/resources/gui/THIRD-PARTY-NOTICES.txt"))
delete(projectDir.resolve("serverpackcreator-gui/src/main/resources/de/griefed/resources/gui/LICENSE-AGREEMENT"))
}

tasks.register<Copy>("copyLicenseReport") {
from(rootDir.resolve("licenses/THIRD-PARTY-NOTICES.txt"))
from(rootDir.resolve("licenses/LICENSE-AGREEMENT"))
into(rootDir.resolve("serverpackcreator-gui/src/main/resources/de/griefed/resources/gui"))
}

Expand Down
2 changes: 1 addition & 1 deletion licenses/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
<div class='header'>
<h1>serverpackcreator dev</h1>
<h2>Dependency License Report</h2>
<h2 class='timestamp'><em>2023-09-16 15:10:16 MESZ</em>.</h2></div>
<h2 class='timestamp'><em>2023-09-16 15:40:36 MESZ</em>.</h2></div>
<h3>Dependency Licences</h3>
<ul>
<li><a class='license' href='#Dependency_Licences_Apache_License,_Version_2.0'><span class='name'>Apache License, Version 2.0</span> <span class='badge'>27</span></a></li>
Expand Down
2 changes: 1 addition & 1 deletion licenses/licences.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# Dependency Licenses
## Dependency License Report
_2023-09-16 15:10:16 MESZ_
_2023-09-16 15:40:36 MESZ_
## Apache License, Version 2.0

**1** **Group:** `com.fasterxml.jackson.core` **Name:** `jackson-databind` **Version:** `2.15.0`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class ThirdPartyNoticesItem(private val mainFrame: MainFrame, private val guiPro
init {
thirdPartyNoticesWindowTextPane.isEditable = false
thirdPartyNoticesWindowTextPane.text =
this.javaClass.classLoader.getResource("de/griefed/resources/gui/THIRD-PARTY-NOTICES.txt")?.readText()
this.javaClass.classLoader.getResource("de/griefed/resources/gui/LICENSE-AGREEMENT")?.readText()
?: "Could not read ressource"
this.addActionListener { displayThirdPartyNotices() }

Expand Down
Loading

0 comments on commit fa13be3

Please sign in to comment.