Tag: gradle

Including .jar files in Github for consistency

I am new to using github and have been trying to figure out this question by looking at other people’s repositories, but I cannot figure it out. When people fork/clone repositories in github to their local computers to develop on the project, is it expected that the cloned project is complete (ie. it has all […]

Git rev-list not working in Android Studio build.gradle

I’ve setup my Android Studio Project to work with Github. Here is my Manifext apply plugin: ‘com.android.application’ def gitVersion() { def counter = 0 def process = “git rev-list master –first-parent –count”.execute() counter = process.text.toInteger() return counter } android { compileSdkVersion 20 buildToolsVersion “20.0.0” def versionMajor = 0 def versionMinor = 1 def versionPatch = […]

building java project (gradle build) with git submodule

I have a project that has a box-java-sdk as git submodule I my source root I did: git submodule add git://github.com/chneukirchen/box-java-sdk.git box-java-sdk Now I need to build MY project which in turns needs a box-java-sdk.jar At present, I am building box.jar separately and putting inside libs directory in “My” project and build.gradle contains: dependencies { […]

Generating online books

I’m researching technology to create online books, a la: Gradle (definitely my favorite) Git book Spring reference docs Hibernate reference docs Would anyone know what tools wwere used to create any (or all) of the above? I’m looking for something that: Separates content from presentation Is simple enough to allow my business users to edit […]

How to handle username/passwords at continuous integration environment with Jenkins, Git and Gradle?

We are trying to set up a continuous integration environment for the spring boot application. We use Jenkins, Gradle and Git. At the application.properties files (few of them for different sub projects), we have hard-coded usernames and passwords for database and proxy access. We do not want to push those files into git with plain […]

Gradle – import GitHub repository and make it a subproject dependency?

I was trying to avoid multi-project builds by deploying JAR file dependencies, but it really undermined my nimble workflow and I need a faster way to make my GIT repositories dynamically add each other as dependencies. I’m sure I could write some creative deployment procedures using JAR files, but I like changes to one project […]

build.gradle dependency on gitlab (local server)

Note: I am not very familiar with gradle Several projects I’ve worked on with gradle have a dependencies section such as the following where I used the Sugar ORM: dependencies { compile fileTree(dir: ‘libs’, include: [‘*.jar’]) compile ‘com.android.support:appcompat-v7:21.0.2’ compile ‘com.github.satyan:sugar:1.3’ } I can compile the Sugar ORM project using: ‘com.github.satyan:sugar:1.3’ I have a local server […]

Gradle versioning with Git

I’m trying to create auto versioning in Gradle with Git, but I got some error when I’m building my app. My os is Windows. def getVerName = { -> try { def stdout = new ByteArrayOutputStream() exec { commandLine “git”, “describe”, “–long” standardOutput = stdout } def result = stdout.toString() result = result.trim() return result […]

How can the Git command be executed on Windows through Gradle?

So I have the following code snippet: def getVersion = { -> def stdout = new ByteArrayOutputStream() exec { commandLine ‘git’, ‘describe’, ‘–tags’ standardOutput = stdout } return stdout.toString().trim() } and whenever I call getVersion(), I get the following error: * What went wrong: A problem occurred evaluating root project ‘ForgeWorkspace’. > Process ‘command ‘git” […]

Buiding hibernate-orm from the source in GitHub

I am trying to build the hibernate–orm from the source in GitHub: https://github.com/hibernate/hibernate-orm. I followed the “quickstart” guideline, in the GitHub site: git clone git://github.com/hibernate/hibernate-orm.git cd hibernate-orm ./gradlew clean build The build requires a Java 8 JDK as JAVA_HOME, but will ensure Java 6 compatibility. However, I got the following error: FAILURE: Build failed with […]

Git Baby is a git and github fan, let's start git clone.