From f3313a3312939eb552a69989fb68a55885032a65 Mon Sep 17 00:00:00 2001 From: Elikill58 Date: Fri, 8 Jul 2022 14:53:36 +0200 Subject: [PATCH 1/5] Fix run --- pom.xml | 50 +------------------------------------------------- 1 file changed, 1 insertion(+), 49 deletions(-) diff --git a/pom.xml b/pom.xml index fa20ef9..09931e3 100644 --- a/pom.xml +++ b/pom.xml @@ -5,6 +5,7 @@ 1.0.0-SNAPSHOT WarmRoast http://www.sk89q.com + scm:git:git://github.com/sk89q/warmroast.git https://github.com/sk89q/warmroast @@ -101,59 +102,10 @@ - - - com.sun:tools - - - - - tools-default - - true - - ${java.home}/../lib/tools.jar - - - - ${java.home}/../lib/tools.jar - - - - com.sun - tools - 1.6.0 - system - ${toolsJar} - - - - - tools-mac - - false - - ${java.home}/../Classes/classes.jar - - - - ${java.home}/../Classes/classes.jar - - - - com.sun - tools - 1.6.0 - system - ${toolsJar} - - - - From 20d0a58ef39adcac77b8f28c089fb9e25f79f6aa Mon Sep 17 00:00:00 2001 From: Elikill58 Date: Fri, 8 Jul 2022 15:12:31 +0200 Subject: [PATCH 2/5] Add github workflow --- .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..646d892 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,30 @@ +name: Build + +on: + push: + branches: [ * ] + +jobs: + build: + name: Build + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + name: Checkout repo + + - name: Set up JDK 17 (LTS) + uses: actions/setup-java@v2 + with: + java-version: '17' + distribution: 'adopt' + cache: maven + + - name: Build with Maven + run: mvn install + + - uses: actions/upload-artifact@v2 + name: Upload Artifact + with: + name: ChatItem.jar + path: target/ChatItem-*.jar \ No newline at end of file From aa3be1edd301752c25a781839b32f9024fa8a2cc Mon Sep 17 00:00:00 2001 From: Elikill58 Date: Fri, 8 Jul 2022 15:14:31 +0200 Subject: [PATCH 3/5] Fix typo --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 646d892..f02cad3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,8 +1,8 @@ name: Build on: - push: - branches: [ * ] + - push + - pull_request jobs: build: @@ -26,5 +26,5 @@ jobs: - uses: actions/upload-artifact@v2 name: Upload Artifact with: - name: ChatItem.jar - path: target/ChatItem-*.jar \ No newline at end of file + name: WarmRoast + path: target/warmroast-*.jar \ No newline at end of file From e956735c9c5c6230bfe3f4d2330c075eaf6f9923 Mon Sep 17 00:00:00 2001 From: Elikill58 Date: Fri, 8 Jul 2022 15:30:23 +0200 Subject: [PATCH 4/5] Update how to use for Java 9 and newer --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8a0b865..d5137ea 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,6 @@ WarmRoast is an easy-to-use CPU sampling tool for JVM applications, but particul **Download Latest Version:** http://builds.enginehub.org/job/warmroast/last-successful/ -Java 7 and above is required to use WarmRoast. - Screenshots ----------- @@ -24,6 +22,14 @@ Screenshots Usage ----- +## For Java 9 and newer + +The `tools.jar` is automatically included into JDK's since Java 9. You only should use something like this: + + java -cp warmroast-1.0.0-SNAPSHOT.jar com.sk89q.warmroast.WarmRoast --thread "Server thread" + +## For Java 7 & 8 + 1. Note the path of your JDK. 2. Download WarmRoast. From 81e941965ee85acf5947e800576aaa7fe9c7637a Mon Sep 17 00:00:00 2001 From: Elikill58 Date: Fri, 8 Jul 2022 15:34:20 +0200 Subject: [PATCH 5/5] Update download links --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d5137ea..64054b4 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,11 @@ WarmRoast is an easy-to-use CPU sampling tool for JVM applications, but particul * See the percentage of CPU time for each method relative to its parent methods. * Maintains style and function with use of "File -> Save As" (in tested browsers). -**Download Latest Version:** http://builds.enginehub.org/job/warmroast/last-successful/ +### Download + +**Latest release**: [here](../../releases) + +**Latest build**: [here](../../actions/workflows/build.yml) Screenshots -----------