marytts / gradle-marytts-voicebuilding-plugin

A replacement for the legacy VoiceImportTools in MaryTTS
http://mary.dfki.de/
GNU General Public License v3.0
16 stars 12 forks source link

MaryTTS build fails with Plugin included under Ubuntu 18.04 #112

Closed dialogics closed 5 years ago

dialogics commented 5 years ago

Running "./gradlew build" with the plugin included leads to the following error:

FAILURE: Build failed with an exception.

* Where:
Script '/home/aura/marytts/applicationLogic.gradle' line: 1

* What went wrong:
A problem occurred evaluating script.
> Failed to apply plugin [id 'org.gradle.application']
   > Cannot add task 'run' as a task with that name already exists.

"build.gradle" file used:

plugins {
    id 'base'
    id 'de.dfki.mary.voicebuilding-legacy' version '5.4'
}

allprojects {
    group 'de.dfki.mary'
    version '6.0-SNAPSHOT'

    repositories {
        jcenter()
    }
}

apply from: 'applicationLogic.gradle'

Running "./gradlew build" without the plugin added terminates without errors.

dialogics commented 5 years ago

With this "build.gradle":

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "de.dfki.mary:gradle-marytts-voicebuilding-plugin:5.4"
  }
}

plugins {
    id 'base'
}

allprojects {
    group 'de.dfki.mary'
    version '6.0-SNAPSHOT'

    repositories {
        jcenter()
    }
}

apply from: 'applicationLogic.gradle'
apply plugin: "de.dfki.mary.voicebuilding-legacy"

the error changes to:

FAILURE: Build failed with an exception.

So both "org.gradle.application" and "de.dfki.mary.voicebuilding.VoicebuildingBasePlugin" have a task called "run". Depending on the build order the one build second will fail to build.

psibre commented 5 years ago

I don't understand your use case. The voicebuilding plugin is not intended to be combined with the MaryTTS core in the same project; in fact, the voicebuilding plugin has dependencies on marytts-runtime etc.

dialogics commented 5 years ago

My use case is quite simple, I want to build a voice with MaryTTS. I was able now to compile the plugin standalone, but still lack the understanding how to use it to build a voice. Where can I find some documentation describing the process using the new Gradle-based version of MaryTTS for voice building (v6)? The MaryTTS Wiki still only describes the old way (v5).

psibre commented 5 years ago

Please see the README; feel free to suggest updates if you find it inaccurate or incomplete. =)

dialogics commented 5 years ago

The documentation is not trying to be helpful for users which are inexperienced with Gradle. The information from here https://github.com/marytts/gradle-marytts-voicebuilding-plugin/issues/95 should be included as well as a short explanation of the correct Gradle project setup. Also the plugin pretty much only works under Gradle 4.10.2 used for the root project, which is also not documented.

ucasiggcas commented 5 years ago

have got success ? pls help me ? thx