Skip to content

Commit

Permalink
Add task for native iOS apps.
Browse files Browse the repository at this point in the history
  • Loading branch information
colorizenl committed Mar 20, 2023
1 parent b5cb7d3 commit 806f780
Show file tree
Hide file tree
Showing 162 changed files with 577 additions and 9,438 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
out/
build/
.gradle/
.idea/
*.iml
example/build

32 changes: 18 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,22 @@ buildscript {
}

plugins {
id "io.freefair.lombok" version "6.6.1"
id "com.github.ben-manes.versions" version "0.44.0"
id "io.freefair.lombok" version "6.6.3"
id "com.github.ben-manes.versions" version "0.46.0"
}

apply plugin: "java-gradle-plugin"
apply plugin: "com.gradle.plugin-publish"
apply plugin: "jacoco"

group = "nl.colorize"
version = "2023.2"
version = "2023.4"
sourceCompatibility = "17"
targetCompatibility = "17"
compileJava.options.encoding = "UTF-8"
sourceSets.main.java.srcDirs = ["source"]
sourceSets.main.resources.srcDirs = ["resources"]
sourceSets.test.java.srcDirs = ["test"]
jar.archiveFileName = "application-plugin.jar"
jar.duplicatesStrategy = DuplicatesStrategy.WARN

repositories {
mavenCentral()
Expand All @@ -38,13 +36,21 @@ dependencies {
implementation gradleApi()
implementation localGroovy()
implementation files("lib/appbundler-1.0ea.jar")
implementation "org.jsoup:jsoup:1.15.3"
implementation "org.jsoup:jsoup:1.15.4"
implementation "org.commonmark:commonmark:0.21.0"
implementation "org.nanohttpd:nanohttpd-webserver:2.3.1"
testImplementation "org.junit.jupiter:junit-jupiter:5.9.1"
testImplementation "org.junit.jupiter:junit-jupiter:5.9.2"
}

jar {
archiveFileName = "application-plugin.jar"
duplicatesStrategy = DuplicatesStrategy.WARN
exclude "**/module-info.class"
exclude "**/META-INF/INDEX.LIST"
exclude "**/META-INF/*.SF"
exclude "**/META-INF/*.DSA"
exclude "**/META-INF/*.RSA"

from {
configurations.runtimeClasspath
.filter { it.toString().endsWith("appbundler-1.0ea.jar") }
Expand All @@ -54,7 +60,7 @@ jar {

test {
if (project.hasProperty("headless")) {
exclude "**/cordova/**", "**/macapplicationbundle/**", "**/windows/**"
exclude "**/cordova/**", "**/macapplicationbundle/**"
}
}

Expand All @@ -63,22 +69,20 @@ test {
}

gradlePlugin {
website = "https://www.clrz.nl"
vcsUrl = "https://github.com/colorizenl/gradle-application-plugin"

plugins {
applicationPlugin {
id = "nl.colorize.gradle.application"
implementationClass = "nl.colorize.gradle.application.ApplicationPlugin"
displayName = "Gradle application plugin"
description = "Build native applications for Windows, Mac, iOS, Android, and the web."
tags.set(["application", "mac", "macos", "application bundle", "windows", "msi", "pwa", "xcode"])
}
}
}

pluginBundle {
website = "https://www.clrz.nl"
vcsUrl = "https://github.com/colorizenl/gradle-application-plugin"
tags = ["application", "mac", "macos", "android", "windows", "application bundle", "pwa"]
}

// Gradle has a compatibility issue with Java 17 when running tests,
// see https://github.com/gradle/gradle/issues/18647 for details.
tasks.withType(Test).configureEach {
Expand Down
Binary file not shown.
Binary file removed example/build/libs/example.jar
Binary file not shown.
80 changes: 0 additions & 80 deletions example/build/mac/Example.app/Contents/Info.plist

This file was deleted.

Binary file not shown.
Binary file not shown.
1 change: 0 additions & 1 deletion example/build/mac/Example.app/Contents/PkgInfo

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 806f780

Please sign in to comment.