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

Ant convert gradle feasure #260

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ azkaban-jobtype-*.jar
azkaban-pigvisualizer-*.jar
dist/
out/
.gradle/
26 changes: 6 additions & 20 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -35,29 +35,15 @@ One can have other settings that are not exposed to users in private.properties,


*****************How to Install:*****************
in advance you need mvn install local for azkaban-common(commpile('azkaban:azkaban-common:3.0.0')) and azkaba-web-server(compile('azkaban:azkaban-web-server:3.0.0')).

The job types in this package can be installed as follows:
then execute the following:
#gradle distZip

1. run ant in the azkaban-plugins directory, make sure you have installed the "dustjs-linkedin" module via "npm install -g less dustjs-linkedin"
you will find jobtype/build/distributions/jobtype-3.0.0.zip

2. compile hadoopsecuritymanager

cd plugins/
cd hadoopsecuritymanager/
ant

## this builds azkaban-hadoopsecuritymanager-0.10.jar

3. build jobtype plugins, package with aforementioned directory structure

cd plugins/
cd jobtype/
ant package

## this builds a tar.gz file in ../../dist/jobtype/packages/azkaban-jobtype-0.10.tar.gz

untar this tar file in your plugin directory, say myplugins/
untar the package, change its name to your azkaban.jobtype.plugin.dir setting.
unzip this zip file in your plugin directory, it say myplugins/
unzip the package, change its name to your azkaban.jobtype.plugin.dir setting.
You need to fill the variables in the .properties files with correct values, including the classpath to your hadoopsecuritymanager jar file.

You need to restart azkaban-executor-server or start a new instance of executor-server to get the new types picked up.
55 changes: 55 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
buildscript {
repositories {
mavenCentral()
mavenLocal()
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'com.cinnober.gradle:semver-git:2.2.1'
classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.8'
}
}



allprojects {
apply plugin: 'com.cinnober.gradle.semver-git'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'java'
repositories {
mavenLocal()
mavenCentral()
}
rootProject.version='3.0.0'
version = rootProject.version


plugins.withType(JavaPlugin) {
sourceCompatibility = JavaVersion.VERSION_1_8
dependencies {
testCompile('junit:junit:4.12')
compile('log4j:log4j:1.2.16')
compile('org.codehaus.jackson:jackson-core-asl:1.9.5')
compile('org.codehaus.jackson:jackson-mapper-asl:1.9.5')
compile('org.apache.hadoop:hadoop-common:2.7.2')
compile('azkaban:azkaban-common:3.0.0')
}
}
}

/**
* Gradle wrapper task.
*/
task wrapper(type: Wrapper) {
gradleVersion = '2.7'
}

idea {
project {
languageLevel = '1.8'
vcs = 'Git'
}
}
3 changes: 0 additions & 3 deletions build.properties

This file was deleted.

202 changes: 0 additions & 202 deletions build.xml

This file was deleted.

11 changes: 11 additions & 0 deletions crypto/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
dependencies {
compile 'org.bouncycastle:bcprov-jdk15on:1.54'
compile 'commons-cli:commons-cli:1.3.1'
compile 'commons-lang:commons-lang:2.6'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.4'
compile 'com.google.guava:guava:19.0'
compile 'com.fasterxml.jackson.core:jackson-databind:2.7.4'
compile 'com.fasterxml.jackson.core:jackson-core:2.7.4'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.7.4'
compile 'org.jasypt:jasypt:1.9.2'
}
File renamed without changes.
Loading