Skip to content

Instantly share code, notes, and snippets.

View techindepth's full-sized avatar
👋

ANISH ANTONY techindepth

👋
View GitHub Profile
<Button android:id="@+id/buttonA" ... />
<Button android:id="@+id/buttonB" ...
app:layout_constraintLeft_toRightOf="@+id/buttonA" />
apply plugin: 'java'
apply plugin: 'eclipse'
sourceCompatibility = 1.5
version = '1.0'
jar {
manifest {
attributes 'Implementation-Title': 'Gradle Quickstart',
'Implementation-Version': version
}
tasks.create(name: 'hello') << {
println "hello behindjava"
}
task('hello') << {
println "hello behindjava"
}
task hello << {
println 'hello behindjava'
}
task hello {
doLast {
println 'hello behindjava'
}
}
repositories {
maven {
url "http://repo.mycompany.com/releases"
mavenContent {
releasesOnly()
}
}
maven {
url "http://repo.mycompany.com/snapshots"
mavenContent {
repositories {
maven {
url "http://repo.mycompany.com/maven2"
content {
// this repository *only* contains artifacts with group "my.company"
includeGroup "my.company"
}
}
jcenter {
content {
repositories {
jcenter()
maven {
url "https://maven.springframework.org/release"
}
maven {
url "https://maven.restlet.com"
}
}
repositories {
maven {
url 'http://repo.mycompany.com/maven2'
}
}