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

Update project strcuture publish #29

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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
262 changes: 207 additions & 55 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,70 +1,118 @@
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.cxx

# Created by https://www.gitignore.io/api/java,gradle,intellij
# Created by https://www.toptal.com/developers/gitignore/api/android,androidstudio,kotlin,java
# Edit at https://www.toptal.com/developers/gitignore?templates=android,androidstudio,kotlin,java

### Intellij ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
### Android ###
# Built application files
*.apk
*.aar
*.ap_
*.aab

.idea/*
# Files for the ART/Dalvik VM
*.dex

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# Java class files
*.class

# CMake
cmake-build-*/
# Generated files
bin/
gen/
out/
# Uncomment the following line in case you need and you don't have the release build type files in your app
# release/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml
# Gradle files
.gradle/
build/

# File-based project format
*.iws
# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/

# Log Files
*.log

# Android Studio Navigation editor temp files
.navigation/

# Android Studio captures folder
captures/

# IntelliJ
out/
*.iml
.idea/
.idea/workspace.xml
.idea/tasks.xml
.idea/gradle.xml
.idea/assetWizardSettings.xml
.idea/dictionaries
.idea/libraries
# Android Studio 3 in .gitignore file.
.idea/caches
.idea/modules.xml
# Comment next line if keeping position of elements in Navigation Editor is relevant for you
.idea/navEditor.xml

# mpeltonen/sbt-idea plugin
.idea_modules/
# Keystore files
# Uncomment the following lines if you do not want to check your keystore files in.
#*.jks
#*.keystore

# JIRA plugin
atlassian-ide-plugin.xml
# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild
.cxx/

# Cursive Clojure plugin
.idea/replstate.xml
# Google Services (e.g. APIs or Firebase)
# google-services.json

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
# Freeline
freeline.py
freeline/
freeline_project_description.json

# Editor-based Rest Client
.idea/httpRequests
# fastlane
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
fastlane/readme.md

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser
# Version control
vcs.xml

### Intellij Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
# lint
lint/intermediates/
lint/generated/
lint/outputs/
lint/tmp/
# lint/reports/

# *.iml
# modules.xml
# .idea/misc.xml
# *.ipr
### Android Patch ###
gen-external-apklibs
output.json

# Sonarlint plugin
.idea/sonarlint
# Replacement of .externalNativeBuild directories introduced
# with Android Studio 3.5.

### Java ###
# Compiled class file
*.class

# Log file
*.log

# BlueJ files
*.ctxt
Expand All @@ -84,22 +132,126 @@ fabric.properties
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

### Gradle ###
### Kotlin ###
# Compiled class file

# Log file

# BlueJ files

# Mobile Tools for Java (J2ME)

# Package Files #

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml

### AndroidStudio ###
# Covers files to be ignored for android development using Android Studio.

# Built application files

# Files for the ART/Dalvik VM

# Java class files

# Generated files

# Gradle files
.gradle
/build/

# Ignore Gradle GUI config
gradle-app.setting
# Signing files
.signing/

# Local configuration file (sdk path, etc)

# Proguard folder generated by Eclipse

# Log Files

# Android Studio
/*/build/
/*/local.properties
/*/out
/*/*/build
/*/*/production
*.ipr
*~
*.swp

# Android Patch

# External native build folder generated in Android Studio 2.2 and later

# NDK
obj/

# IntelliJ IDEA
*.iws
/out/

# User-specific configurations
.idea/caches/
.idea/libraries/
.idea/shelf/
.idea/.name
.idea/compiler.xml
.idea/copyright/profiles_settings.xml
.idea/encodings.xml
.idea/misc.xml
.idea/scopes/scope_settings.xml
.idea/vcs.xml
.idea/jsLibraryMappings.xml
.idea/datasources.xml
.idea/dataSources.ids
.idea/sqlDataSources.xml
.idea/dynamic.xml
.idea/uiDesigner.xml

# OS-specific files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Legacy Eclipse project files
.classpath
.project
.cproject
.settings/

# Mobile Tools for Java (J2ME)

# Package Files #

# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar
# virtual machine crash logs (Reference: http://www.java.com/en/download/help/error_hotspot.xml)

# Cache of project
.gradletasknamecache
## Plugin-specific files:

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Mongo Explorer plugin
.idea/mongoSettings.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
# gradle/wrapper/gradle-wrapper.properties
### AndroidStudio Patch ###

!/gradle/wrapper/gradle-wrapper.jar

# End of https://www.gitignore.io/api/java,gradle,intellij
# End of https://www.toptal.com/developers/gitignore/api/android,androidstudio,kotlin,java
.idea/codeStyles/Project.xml
.idea/runConfigurations.xml

publish.properties
*.gpg
Comment on lines +256 to +257
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Quick guide

#### Add dependency
```gradle
implementation 'co.infinum:retromock:1.1.1'
implementation 'co.infinum:retromock:1.2.0'
```

#### Initialize
Expand Down
File renamed without changes.
19 changes: 19 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
group = 'co.infinum'
version = "$versions.retromock"

buildscript {
apply from: 'versions.gradle'
apply from: "maven.gradle"

repositories {
google()
mavenCentral()
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}

17 changes: 17 additions & 0 deletions config.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ext.mavenPublishProperties = [
"group" : "co.infinum",
"artifactId" : "retromock",
"version" : libs.versions.retromock.get(),
repository : [
url : sonatype.url,
username: sonatype.username,
password: sonatype.password
],
name : "Retromock",
description: "Adapts Java interface created by Retrofit using annotations on declared methods to define response mocks.",
url : "https://github.com/infinum/Retromock",
scm : [
connection: "https://github.com/infinum/Retromock.git",
url : "https://github.com/infinum/Retromock"
]
]
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions config/quality.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apply plugin: 'checkstyle'
apply plugin: 'pmd'

checkstyleMain {
configFile file("${project.projectDir}/config/checkstyle.xml")
configProperties = [
'checkstyle.cache.file': rootProject.file('build/checkstyle.cache'),
'checkstyle.suppression.file': file("${project.projectDir}/config/suppressions.xml")
]
}

pmdMain {
ruleSetFiles = files("${project.projectDir}/config/pmd-ruleset.xml")
ignoreFailures = false

source 'src'
include '**/*.java'
exclude '**/gen/**'

reports {
xml.required.set(false)
html.required.set(true)
}
}
File renamed without changes.
Loading