Skip to content

Instantly share code, notes, and snippets.

View li-salvadorlopez's full-sized avatar

Salvador Lopez li-salvadorlopez

View GitHub Profile
@li-salvadorlopez
li-salvadorlopez / ssh-plugin.gradle
Created January 17, 2015 00:12
gradle ssh plugin
/*
get the rsa key of your server:
$ ssh-keyscan -t rsa server_ip
# server_ip SSH-2.0-OpenSSH_4.3
server_ip ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAwH5EXZG...
and on the client, add this key to ~/.ssh/known_hosts:
server_ip ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAqx9m529...(the offensive key)
@li-salvadorlopez
li-salvadorlopez / wsdl2code.gradle
Created January 16, 2015 19:16
Gradle axis2 wsdl2code
configurations {
axisGenAntTask
}
dependencies {
axisGenAntTask "org.apache.axis2:axis2:1.6.2",
"org.apache.axis2:axis2-tools:1.1.1",
'org.apache.neethi:neethi:2.0.2',
'org.apache.ws.commons.schema:XmlSchema:1.4.7',
'org.apache.ws.commons.axiom:axiom-api:1.2.14',
@li-salvadorlopez
li-salvadorlopez / wsdl2java.gradle
Last active August 29, 2015 14:13
Gradle wsdl2java ant task
apply plugin: "java"
repositories{
mavenCentral()
}
configurations {
axisGenAntTask
}
@li-salvadorlopez
li-salvadorlopez / pom.xml
Created January 15, 2015 01:22
Maven jboss plugin
<profile>
<id>remote-deploy</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
@li-salvadorlopez
li-salvadorlopez / scp.gradle
Created January 14, 2015 23:30
Gradle SCP ant task
// We define a new configuration with the name 'sshAntTask'.
// This configuration is used to define our dependencies.
configurations {
sshAntTask
}
// Define the Maven central repository to look for the dependencies.
repositories {
mavenCentral()
}
@li-salvadorlopez
li-salvadorlopez / nexus.gradle
Created January 14, 2015 23:27
gradle nexus upload
uploadArchives {
repositories {
mavenDeployer {
repository(url: "http://REPOSITORYURL/nexus/content/repositories/snapshots/") {
authentication(userName: "username", password: "password")
}
pom.version = "1.0-SNAPSHOT"
pom.artifactId = "artifactId"
pom.groupId = "com.example"
}
@li-salvadorlopez
li-salvadorlopez / build.gradle
Created January 14, 2015 23:19
Gradle custom project layout
apply plugin: "war"
project.webAppDirName = 'WebContent'
repositories {
flatDir { dirs "WebContent/WEB-INF/lib" }
mavenCentral()
}
dependencies {