Skip to content

Commit

Permalink
Merge branch 'master' into fix/vm-compilation-failure-clang15
Browse files Browse the repository at this point in the history
  • Loading branch information
dkimitsa authored Apr 15, 2024
2 parents fcee80a + 10889cb commit 3550411
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ set -e
mvn clean install
./plugins/idea/gradlew -b plugins/idea/build.gradle clean buildPlugin
mvn -f plugins/eclipse/pom.xml clean install
./plugins/gradle/gradlew -b plugins/gradle/build.gradle clean assemble publishToMavenLocal
./plugins/gradle/gradlew -b plugins/gradle/build.gradle clean assemble validatePlugins publishToMavenLocal
15 changes: 4 additions & 11 deletions plugins/gradle/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id "com.github.johnrengelman.shadow" version "8.1.0"
id "com.github.johnrengelman.shadow" version "8.1.1"
id "com.gradle.plugin-publish" version "1.2.1"
id 'java'
id 'java-gradle-plugin'
id 'groovy'
id 'maven-publish'
id 'signing'
Expand Down Expand Up @@ -60,11 +60,7 @@ gradlePlugin {

publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'com.mobidevelop.robovm'
artifactId = 'robovm-gradle-plugin'
from components.java

pluginMaven(MavenPublication) {
pom {
name = 'RoboVM Gradle Plugin'
packaging = 'jar'
Expand Down Expand Up @@ -118,9 +114,6 @@ java {

shadowJar {
archiveClassifier.set('')
dependencies {
exclude(dependency("com.mobidevelop.robovm:robovm-compiler:${roboVMVersion}"));
}
relocate 'org.apache.http', 'com.mobidevelop.robovm.org.apache.http'
relocate 'org.apache.commons.io', 'com.mobidevelop.robovm.org.apache.commons.io'
relocate 'org.objectweb.asm', 'com.mobidevelop.robovm.asm'
Expand All @@ -133,7 +126,7 @@ tasks.withType(Javadoc) {

signing {
required { !version.endsWith('SNAPSHOT') && gradle.taskGraph.hasTask("publish") }
sign publishing.publications.mavenJava
sign publishing.publications.pluginMaven
}

assemble.dependsOn('shadowJar')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ protected void launch(DeviceType type) {
@Internal
protected abstract Arch getArch();

@Internal
protected DeviceType getDeviceType(DeviceType.DeviceFamily family) {
String deviceName = (String) project.getProperties().get("robovm.device.name");
String sdkVersion = (String) project.getProperties().get("robovm.sdk.version");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import org.robovm.compiler.target.ios.ProvisioningProfile;
import org.robovm.compiler.target.ios.SigningIdentity;
import org.robovm.compiler.util.InfoPList;
import org.robovm.compiler.util.PList;
import org.robovm.idea.RoboVmPlugin;
import org.robovm.idea.running.RoboVmRunConfiguration.EntryType;
import org.robovm.libimobiledevice.IDevice;
Expand Down Expand Up @@ -194,7 +193,8 @@ protected void applyEditorTo(@NotNull RoboVmRunConfiguration config) throws Conf
config.setSigningIdentity(Decorator.from(signingIdentity).id);
config.setProvisioningProfileType(Decorator.from(provisioningProfile).entryType);
config.setProvisioningProfile(Decorator.from(provisioningProfile).id);
config.setTargetDeviceUDID(Decorator.from(targetDeviceUDID).id);
// TargetDeviceUDID is optional
config.setTargetDeviceUDID(Decorator.idOrNullFrom(targetDeviceUDID));
// simulator related
config.setSimulatorArch((CpuArch) simArch.getSelectedItem());
config.setSimulatorType(Decorator.from(simType).entryType);
Expand Down Expand Up @@ -816,6 +816,15 @@ static <T> Decorator<T> from(JComboBox<? extends Decorator<T>> cb) {
//noinspection unchecked
return (Decorator<T>) cb.getSelectedItem();
}

/**
* @return id from decorator if it presents
*/
static <T> String idOrNullFrom(JComboBox<? extends Decorator<T>> cb) {
//noinspection unchecked
Decorator<T> decorator = (Decorator<T>) cb.getSelectedItem();
return decorator != null ? decorator.id : null;
}
}

/**
Expand Down

0 comments on commit 3550411

Please sign in to comment.