Skip to content

Commit 93c4282

Browse files
committed
Pages plugin version 0.2, set java compilation target to 8, fix aarch64 de-normalization
1 parent ad69eb6 commit 93c4282

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1105
-758
lines changed

.circleci/config.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 2.1
2+
3+
executors:
4+
linux:
5+
docker:
6+
- image: cimg/openjdk:21.0
7+
8+
jobs:
9+
unit-test:
10+
executor: linux
11+
steps:
12+
- checkout
13+
- run: ./gradlew test
14+
15+
workflows:
16+
build:
17+
jobs:
18+
- unit-test

.editorconfig

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,14 @@ max_line_length = 80
1414
[*.{kt,kts}]
1515
indent_size = 4
1616
max_line_length = 100
17-
ktlint_standard_trailing-comma-on-call-site = disabled
18-
ktlint_standard_trailing-comma-on-declaration-site = disabled
17+
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL
18+
ij_kotlin_name_count_to_use_star_import = 2147483647
19+
ij_kotlin_name_count_to_use_star_import_for_members = 2147483647
20+
ij_kotlin_packages_to_use_import_on_demand = unset
21+
ktlint_class_signature_rule_force_multiline_when_parameter_count_greater_or_equal_than = unset
22+
ktlint_function_signature_rule_force_multiline_when_parameter_count_greater_or_equal_than = unset
23+
ktlint_chain_method_rule_force_multiline_when_chain_operator_count_greater_or_equal_than = unset
24+
25+
[*.gradle]
26+
indent_size = 4
27+
max_line_length = 100

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# macOS
2-
**/.DS_Store
2+
.DS_Store
3+
._*
34

45
# Gradle
56
.gradle/
@@ -10,3 +11,6 @@ local.properties
1011
*.iml
1112
.idea/
1213
out/
14+
15+
# VSCode
16+
bin/

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

README.md

Lines changed: 10 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
[![Travis CI](https://img.shields.io/travis/com/hendraanggrian/packaging-gradle-plugin)](https://travis-ci.com/github/hendraanggrian/packaging-gradle-plugin/)
2-
[![Plugin Portal](https://img.shields.io/maven-metadata/v.svg?label=plugin-portal&metadataUrl=https%3A%2F%2Fplugins.gradle.org%2Fm2%2Fcom%2Fhendraanggrian%2Fpackaging%2Fcom.hendraanggrian.packaging.gradle.plugin%2Fmaven-metadata.xml)](https://plugins.gradle.org/plugin/com.hendraanggrian.packaging)
3-
[![OpenJDK](https://img.shields.io/badge/jdk-17%2B-informational)](https://openjdk.java.net/projects/jdk/17/)
1+
[![CircleCI](https://img.shields.io/circleci/build/gh/hanggrian/packaging-gradle-plugin)](https://app.circleci.com/pipelines/github/hanggrian/packaging-gradle-plugin/)
2+
[![Plugin Portal](https://img.shields.io/gradle-plugin-portal/v/com.hanggrian.packaging)](https://plugins.gradle.org/plugin/com.hanggrian.packaging)
3+
[![Java](https://img.shields.io/badge/java-17+-informational)](https://docs.oracle.com/javase/17/)
44

55
# Packaging Gradle Plugin
66

@@ -9,18 +9,13 @@ Gradle plugin that wraps JARs into native bundle for Windows, macOS, and Linux.
99
- Complete customization for each distribution.
1010
- Pack multiple distributions with a single task.
1111

12-
| Version | Method |
13-
| --- | --- |
14-
| 0.1 | [packr](https://github.com/libgdx/packr/) |
15-
| 0.2+ | [jpackage](https://docs.oracle.com/en/java/javase/14/jpackage/packaging-overview.html) |
16-
1712
## Download
1813

1914
Using plugins DSL:
2015

2116
```gradle
2217
plugins {
23-
id('com.hendraanggrian.packaging') version "$version"
18+
id('com.hanggrian.packaging') version "$version"
2419
}
2520
```
2621

@@ -32,11 +27,11 @@ buildscript {
3227
gradlePluginPortal()
3328
}
3429
dependencies {
35-
classpath("com.hendraanggrian:packaging-gradle-plugin:$version")
30+
classpath("com.hanggrian:packaging-gradle-plugin:$version")
3631
}
3732
}
3833
39-
apply plugin: 'com.hendraanggrian.packaging'
34+
apply plugin: 'com.hanggrian.packaging'
4035
```
4136

4237
## Usage
@@ -47,30 +42,11 @@ configuration.
4742

4843
```gradle
4944
packaging {
50-
executable.set('example')
51-
classpath.set(new File('path/to/jar'))
45+
appName.set('Custom Directory')
5246
mainClass.set('com.example.App')
53-
vmArgs.addAll('-Xmx1G')
54-
resources.addAll(new File('image.jpg'), new File('path/to/other.jpg'))
55-
minimizeJre.set('hard')
56-
outputDirectory.set(new File('my/folder'))
47+
modules = ['javafx.controls', 'javafx.graphics']
48+
modulePaths.add(new File('/path/to/javafx-sdk/lib'))
5749
verbose.set(true)
58-
autoOpen.set(true)
59-
}
60-
61-
tasks {
62-
packWindows64 {
63-
executable.set('example64')
64-
vmArgs.add('-Xdebug')
65-
appName.set('Example Windows 64-bit')
66-
jdk.set('path/to/windows_64_jdk')
67-
}
68-
packMacOS {
69-
name.set('Example.app')
70-
jdk.set('path/to/mac_jdk')
71-
icon.set(new File('path/to/mac_icon.icns'))
72-
bundleId.set('com.example.app')
73-
}
7450
}
7551
```
7652

@@ -81,7 +57,7 @@ with `installDist` command.
8157

8258
```gradle
8359
apply plugin: 'application'
84-
apply plugin: 'com.hendraanggrian.packaging'
60+
apply plugin: 'com.hanggrian.packaging'
8561
8662
application {
8763
applicationName = 'My App'

build.gradle.kts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
val releaseGroup: String by project
2+
val releaseVersion: String by project
3+
14
allprojects {
2-
group = RELEASE_GROUP
3-
version = RELEASE_VERSION
5+
group = releaseGroup
6+
version = releaseVersion
47
}

buildSrc/build.gradle.kts

Lines changed: 0 additions & 9 deletions
This file was deleted.

buildSrc/src/KtLint.kt

Lines changed: 0 additions & 52 deletions
This file was deleted.

buildSrc/src/Releases.kt

Lines changed: 0 additions & 9 deletions
This file was deleted.

gradle.properties

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
# Gradle
1+
developerId=hanggrian
2+
developerName=Hendra Anggrian
3+
developerUrl=https://github.com/hanggrian/
4+
releaseGroup=com.hanggrian.packaging
5+
releaseArtifact=packaging-gradle-plugin
6+
releaseVersion=0.1
7+
releaseDescription=Start making native distributions for your JAR
8+
releaseUrl=https://github.com/hanggrian/packaging-gradle-plugin/
9+
210
org.gradle.parallel=true
311
org.gradle.jvmargs=-Xmx2g -Dfile.encoding=UTF-8
412

5-
# IDEA
613
kotlin.code.style=official

0 commit comments

Comments
 (0)