Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle don't let me sync with the izpack add #15

Open
levymikael opened this issue Aug 2, 2020 · 0 comments
Open

Gradle don't let me sync with the izpack add #15

levymikael opened this issue Aug 2, 2020 · 0 comments

Comments

@levymikael
Copy link

levymikael commented Aug 2, 2020

Hello there,

I am trying to run the IzPack installere on my Libgdx project from the gradle.
I inserteed the relevant lines as you detailed, and I am having an error.
I am pretty to java and in coding in general, so i am maybe missing something obivous
Can you please assist?

`buildscript {

repositories {
    mavenLocal()
    mavenCentral()
    maven { url "https://plugins.gradle.org/m2/" }
    maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
    maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
    maven { url "https://oss.sonatype.org/content/repositories/releases/" }
    jcenter()
    google()
}
dependencies {
    classpath 'com.android.tools.build:gradle:3.6.3'

    classpath "com.badlogicgames.gdx:gdx-ai:1.8.1"

}

}

allprojects {

version = '1.0'
ext {
    appName = "Primval-desktop"
    gdxVersion = '1.9.10'
    roboVMVersion = '2.3.8'
    box2DLightsVersion = '1.4'
    ashleyVersion = '1.7.0'
    aiVersion = '1.8.0'
    visuiVersion = '1.4.2'
    id 'com.bmuschko.izpack'
}

repositories {
    mavenLocal()
    mavenCentral()
    jcenter()
    google()
    maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
    maven { url "https://oss.sonatype.org/content/repositories/releases/" }
    maven { url "https://plugins.gradle.org/m2/" }
    classpath 'com.bmuschko:gradle-izpack-plugin:3.1'

}

}

project(":desktop") {
apply plugin: "java-library"

dependencies {
    implementation project(":core")
    api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
    api "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"


    implementation "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
    implementation group: 'de.dfki.mary', name: 'voice-cmu-slt-hsmm', version: '5.2'

    implementation group:'org.xerial', name:'sqlite-jdbc', version:'3.8.11.2'

// implementation "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"

    implementation "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"

    implementation "com.badlogicgames.gdx:gdx-ai:1.8.1"

// implementation "com.github.myrealitycoding:jpersis:1.0.0"

// implementation "de.longri.gdx-sqlite:gdx-sqlite-platform:$gdxSqliteVersion:natives-desktop"

// implementation 'gdx-sqlite-desktop.jar'
// implementation 'sqlite-jdbc-3.7.2.jar'
}

// task deleteJar(type: Delete) {
// delete 'libs/jars/logmanagementlib.jar'
// }
//
// task createJar(type: Copy) {
// from('build/intermediates/bundles/release/')
// into('libs/jars/')
// include('classes.jar')
// rename('classes.jar', 'logmanagementlib.jar')
// }
//
// createJar.dependsOn(deleteJar, build)

}

project(":android") {
apply plugin: "android"

configurations { natives }

dependencies {
    implementation project(":core")
    api "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
    natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi"
    natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
    natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a"
    natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
    natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64"


    implementation "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
    natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi"
    natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi-v7a"
    natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-arm64-v8a"
    natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86"
    natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86_64"

    implementation "com.badlogicgames.gdx:gdx-ai:1.8.1"

}

}

project(":core") {
apply plugin: "java-library"

dependencies {
    api "com.badlogicgames.gdx:gdx:$gdxVersion"
    implementation "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"

    implementation "com.github.myrealitycoding:jpersis:1.0.0"

    implementation group:'org.xerial', name:'sqlite-jdbc', version:'3.8.11.2'
    implementation "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"

    implementation "com.kotcrab.vis:vis-ui:$visuiVersion"
    implementation "com.badlogicgames.gdx:gdx-ai:1.8.1"
    implementation 'org.codehaus.izpack:izpack-ant:5.1.3'

// implementation "de.longri.gdx-sqlite:gdx-sqlite:$gdxSqliteVersion"
// implementation "sqlite-jdbc-3.7.2.jar"
}

// task deleteJar(type: Delete) {
// delete 'libs/jars/logmanagementlib.jar'
// }
//
// task createJar(type: Copy) {
// from('build/intermediates/bundles/release/')
// into('libs/jars/')
// include('classes.jar')
// rename('classes.jar', 'logmanagementlib.jar')
// }
//
// createJar.dependsOn(deleteJar, build)
}
`

Thanks a lot

@levymikael levymikael changed the title Gradle dont let me sync with thee izpack add Gradle don't let me sync with the izpack add Aug 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant