Alexey Tsvetkov
3aff8f47e3
Add ability to create/run distributable app
4 years ago
Alexey Tsvetkov
d4e423e98f
Implement packaging uber jar for current OS ( #145 )
4 years ago
Nikolay Igotti
84163e7499
Move to 0.2.0-build132
4 years ago
Nikolay Igotti
18afa24fe0
Move to 0.2.0-build128
4 years ago
Alexey Tsvetkov
a71e6b6378
Add OS arch to plugin provided dependencies ( #113 )
...
* Add OS arch to plugin provided dependencies
* Delete DesktopDependencies#all
4 years ago
Alexey Tsvetkov
3e74b43cc6
Use Kotlin 1.4.0 in Gradle tests
4 years ago
Alexey Tsvetkov
2e1266984e
Allow running Gradle tests with any JDK >= 14
4 years ago
Alexey Tsvetkov
215e9d66bc
Mention compatible Gradle versions in docs
4 years ago
Alexey Tsvetkov
6991b4f5de
Include min task version in all checks
4 years ago
Alexey Tsvetkov
b601ed9693
Print Gradle version used in tests
...
Also switch to JUnit 5, because the feature is not supported by JUnit 4
4 years ago
Alexey Tsvetkov
fbc51e4019
Test plugin against multiple versions of Gradle
4 years ago
Alexey Tsvetkov
f46a39cd6a
Add Gradle plugin integration tests
4 years ago
Alexey Tsvetkov
bef34ad7d2
Add compose Gradle extension to dependency blocks
...
Before this change, the following Groovy DSL code would not work:
```
dependency {
implementation compose.desktop.currentOS
}
// or
kotlin {
jvm { withJava() }
sourceSets {
named("jvmMain") {
dependencies {
implementation(compose.desktop.currentOs)
}
}
}
}
```
4 years ago
Alexey Tsvetkov
ad0b6fc916
Provide default value for Compose version for Gradle plugin
...
There are two versions used in the Gradle plugin:
* The version of the plugin itself;
* The version of Compose dependency used by the plugin.
On CI both versions are set to the same value specific to the build.
However, locally using 0.1.0-SNAPSHOT for the Compose version is inconvenient,
because we don't publish 0.1.0-SNAPSHOT anywhere.
Even if it existed, a moving version is not convenient for using in tests.
This commit changes version handling:
* The version of Compose is set via `compose.version` Gradle property
to the latest stable version, unless overridden by
`COMPOSE_GRADLE_PLUGIN_COMPOSE_VERSION` env. var.
* The version of the plugin is set via `deploy.version`
Gradle property to 0.1.0-SNAPSHOT,
unless overridden by `COMPOSE_GRADLE_PLUGIN_VERSION` env. var
4 years ago
Alexey Tsvetkov
455814b9d3
Fix compile error
...
For some reason, the compiler failed to resolve the method reference correctly.
Also minor fix for `executable` property (the code was red in IDE, but compiled).
4 years ago
Eliezer Graber
56da868a05
Fix a crash when building using Gradle 6.6+
4 years ago
Alexey Tsvetkov
332d57ae33
Allow overriding COMPOSE_GRADLE_PLUGIN_COMPOSE_VERSION via Gradle property
...
Gradle properties are more convenient for local builds
4 years ago
Alexey Tsvetkov
37cc9665c1
Log distribution output path
4 years ago
Alexey Tsvetkov
3b7835fb4a
Merge compose.desktop.application plugin with compose plugin
...
This change removes `org.jetbrains.compose.desktop.application` plugin id
in favor of doing everything in `org.jetbrains.compose`.
The change simplifies configuring Compose Desktop projects.
Now, just one plugin dependency is needed.
To avoid task name conflicts with common task names such as `package` and `run`,
the plugin creates tasks lazily only if `application` block/property is used in a script.
4 years ago
Alexey Tsvetkov
b0f038d833
Minor: remove unused imports
4 years ago
Alexey Tsvetkov
e915ec6ac1
Make AppImage format compatible with all OS
...
Turns out, app-image is not an OS specific format, but a prepackaged image of packaged app
4 years ago
Alexey Tsvetkov
01fe61f9c7
Include main jar into runtime classpath for Kotlin MPP target
4 years ago
Alexey Tsvetkov
66a392b11f
Fix getting runtime classpath from Kotlin MPP target
...
runtimeElementsConfigurationName is not a resolvable configuration
4 years ago
Alexey Tsvetkov
518aa7fc81
Rename JetPack -> JetBrains
4 years ago
Alexey Tsvetkov
d0859c665c
Adjust settings for Windows
...
Enable dir chooser by default.
Also, treat menu as true if menuGroup is not null.
4 years ago
Alexey Tsvetkov
815c0484a9
Download WiX toolset on Windows
...
It is a non-optional dependency for jpackage
(see "Dependencies" section of https://openjdk.java.net/jeps/343 ).
4 years ago
Alexey Tsvetkov
6c03263f2f
Change tasks group
4 years ago
Alexey Tsvetkov
cc68421f2e
Escape file paths on Windows
4 years ago
Alexey Tsvetkov
991b7ff6a7
Rename nativeExecutables to nativeDistributions
4 years ago
Alexey Tsvetkov
927abf0d03
Add icons support to packaging
4 years ago
Alexey Tsvetkov
014fb87429
Enable official code style when root dir is opened in Intellij
4 years ago
Alexey Tsvetkov
563dc37c9b
Add desktop application Gradle plugin
...
For simplified packaging and running an app
4 years ago
Alexey Tsvetkov
2451d79d06
Remove unnecessary META_INF/gradle-plugins/*.properties files
...
That's already handled by java-gradle-plugin configuration
(a plugin for Gradle plugin development)
4 years ago
Alexey Tsvetkov
acd734c653
Add local dir repository
...
So it's easy to see all published artifacts
4 years ago
Alexey Tsvetkov
3573807e03
Fix repository name
4 years ago
Alexey Tsvetkov
279826275a
Enable parallel build by default
4 years ago
Alexey Tsvetkov
a8e34eddad
Refactor gradle-plugin build configuration to allow other plugins
...
So other plugins can be added to separate subprojects
4 years ago