On 04/14/2016 10:18 PM, Patricia Shanahan wrote:
On 4/14/2016 6:29 PM, Carl Marcum wrote:
On 04/14/2016 08:10 PM, Patricia Shanahan wrote:
On 4/14/2016 3:28 AM, Carl Marcum wrote:
On 04/14/2016 12:57 AM, Patricia Shanahan wrote:


On 4/6/2016 3:27 AM, Carl Marcum wrote:
On 04/05/2016 09:57 PM, Patricia Shanahan wrote:
I think you will get more votes with more instructions.

I've never done a gradle build, and have no idea how to do one. I'm
sure I could find out, but that is going to take time.


...
If you don't go that route you can get Gradle here:
http://gradle.org/gradle-download/

Once you have it installed you can build the project with 'gradle jar'


$ gradle jar

FAILURE: Build failed with an exception.

* Where:
Build file
'C:\OpenOfficeDev\GroovyUNO\guno-extension-0.1.4\build.gradle' line: 83

* What went wrong:
A problem occurred evaluating root project 'guno-extension-0.1.4'.
> No such property: mavenUser for class:
org.gradle.api.publication.maven.internal.deployer.DefaultGroovyMavenDeployer



Hi Patricia,

Looks like Gradle is evaluating variables that are read from my
~/.gradle/gradle.properties file.
These are variables that a user needs to keep out of SVN.

There is also a gradle.properties file under the project root, please
add this and retry the build.
Here is what I have in my gradle.properties:

signing.keyId=12345678
signing.password=my key password
signing.secretKeyRingFile=/path/to/keyring.gpg
mavenUser=mavenUser
mavenPassword=mavenPassword

You don't need to edit the values.

If this solves it for you I can patch the RC and try again.

Are you sure I should need to use a maven account to do this test?

No you don't need a maven account to run the jar task.  Only add the
properties and values to the currently empty gradle.properties file
under the project directory.
Edit this file:
/cygdrive/c/OpenOfficeDev/GroovyUNO/guno-extension-0.1.4/gradle.properties
by adding this text as-is:

signing.keyId=12345678
signing.password=my key password
signing.secretKeyRingFile=/path/to/keyring.gpg
mavenUser=mavenUser
mavenPassword=mavenPassword

----------------------------------------
  The gradle.build script will look for undefined variables in this
gradle.properties file first and then in ~/.groovy/gradle.properties
which is where my real ones were so the didn't end up in SVN.

These will not actually be used for anything unless the uploadArchives
task is ran which will create jars, sign them, and upload to Maven
repository.

Thanks. It built, though with one error code message:

Patricia@Jan2014Desktop /cygdrive/c/OpenOfficeDev/GroovyUNO/guno-extension-0.1.4
$ gradle jar
:clean UP-TO-DATE
:compileJava UP-TO-DATE
:compileGroovy
:processResources
:classes
:groovydoc
Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
:jar

BUILD SUCCESSFUL

Total time: 48.871 secs


Hi Patricia,

That's great.

What java version of JDK are you running?  It may be related to [1] or [2].

Did you have a chance to try the HelloTextTableShape.groovy test script that I placed in Bugzilla [3]?

I'll create a new RC to add that content to build.properties this evening.

[1] http://stackoverflow.com/questions/16428098/groovy-shell-warning-could-not-open-create-prefs-root-node
[2] http://bugs.java.com/bugdatabase/view_bug.do?bug_id=6790382
[3] https://bz.apache.org/ooo/show_bug.cgi?id=126770

Thanks again !!
Carl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

Reply via email to