Skip to content

Commit

Permalink
[structure] Update gitignore to not use idea files. Added artifact fi…
Browse files Browse the repository at this point in the history
…le for building onto JitPack.
  • Loading branch information
fuzzagrosner committed Aug 24, 2016
1 parent 423b526 commit 4b53a92
Show file tree
Hide file tree
Showing 27 changed files with 94 additions and 178 deletions.
40 changes: 33 additions & 7 deletions .gitignore
@@ -1,8 +1,34 @@
# built application files
*.apk
*.ap_

# files for the dex VM
*.dex

# Java class files
*.class

# generated files
bin/
gen/

# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Eclipse project files
.classpath
.project

# Proguard folder generated by Eclipse
proguard/

# Intellij project files
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
*.ipr
*.iws
.idea/
crashlytics-build.properties
1 change: 0 additions & 1 deletion .idea/.name

This file was deleted.

22 changes: 0 additions & 22 deletions .idea/compiler.xml

This file was deleted.

3 changes: 0 additions & 3 deletions .idea/copyright/profiles_settings.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/encodings.xml

This file was deleted.

25 changes: 0 additions & 25 deletions .idea/gradle.xml

This file was deleted.

62 changes: 0 additions & 62 deletions .idea/misc.xml

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/modules.xml

This file was deleted.

12 changes: 0 additions & 12 deletions .idea/runConfigurations.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

43 changes: 43 additions & 0 deletions android-artifacts.gradle
@@ -0,0 +1,43 @@
apply plugin: 'com.github.dcendents.android-maven'
install {
repositories.mavenInstaller {
pom {
project {
packaging bt_packaging
name bt_name
url bt_siteUrl
licenses {
license {
name bt_licenseName
url bt_licenseUrl
}
}
scm {
connection bt_gitUrl
developerConnection bt_gitUrl
url bt_siteUrl
}
}
}
}
}

task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}

task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
//archives javadocJar
archives sourcesJar
}
4 changes: 1 addition & 3 deletions build.gradle
Expand Up @@ -6,9 +6,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
}
}

Expand Down
2 changes: 1 addition & 1 deletion example/build.gradle
Expand Up @@ -23,5 +23,5 @@ dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile project(':library')
compile project(':ratingbar')
}
25 changes: 7 additions & 18 deletions gradle.properties
@@ -1,18 +1,7 @@
# Project-wide Gradle settings.

# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.

# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
version=1.0.0
version_code=1
group=com.fuzzproductions.ratingbar
bt_siteUrl=https://github.com/fuzz-productions/RatingBar
bt_gitUrl=https://github.com/fuzz-productions/RatingBar.git
bt_licenseName=The MIT License
bt_licenseUrl=http://opensource.org/licenses/MIT
1 change: 0 additions & 1 deletion library/.gitignore

This file was deleted.

5 changes: 5 additions & 0 deletions library/build.gradle → ratingbar/build.gradle
@@ -1,4 +1,7 @@
apply plugin: 'com.android.library'
apply plugin: 'maven'

group = 'com.github.fuzz-productions'

android {
compileSdkVersion 23
Expand All @@ -17,3 +20,5 @@ dependencies {
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
}

apply from: '../android-artifacts.gradle'
3 changes: 3 additions & 0 deletions ratingbar/gradle.properties
@@ -0,0 +1,3 @@
bt_name=RatingBar
bt_packaging=aar
bt_artifact_id=ratingbar
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion settings.gradle
@@ -1 +1 @@
include ':library', ':example'
include ':ratingbar', ':example'

0 comments on commit 4b53a92

Please sign in to comment.