Skip to content

Commit

Permalink
【buyuntao】ArgusAPM first upload code
Browse files Browse the repository at this point in the history
  • Loading branch information
buyuntao committed Nov 27, 2018
0 parents commit d2c2def
Show file tree
Hide file tree
Showing 248 changed files with 17,632 additions and 0 deletions.
197 changes: 197 additions & 0 deletions argus-apm-gradle/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,197 @@
# --------
# Git Global Ignores
# Collect by ArgusAPM Team
# --------


# --------
# Android
# https://github.com/github/gitignore/blob/master/Android.gitignore
# --------

# Built application files
*.apk
*.ap_

# Files for the ART/Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/
out/

# Gradle files
.gradle/
build/

# 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
*.iml
.idea/workspace.xml
.idea/tasks.xml
.idea/gradle.xml
.idea/libraries

# Keystore files
*.jks

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


# --------
# Eclipse
# https://github.com/github/gitignore/blob/master/Global/Eclipse.gitignore
# --------

.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.loadpath
.recommenders

# Eclipse Core
.project

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# PyDev specific (Python IDE for Eclipse)
*.pydevproject

# CDT-specific (C/C++ Development Tooling)
.cproject

# JDT-specific (Eclipse Java Development Tools)
.classpath

# Java annotation processor (APT)
.factorypath

# PDT-specific (PHP Development Tools)
.buildpath

# sbteclipse plugin
.target

# Tern plugin
.tern-project

# TeXlipse plugin
.texlipse

# STS (Spring Tool Suite)
.springBeans

# Code Recommenders
.recommenders/

# --------
# Windows
# https://github.com/github/gitignore/blob/master/Global/Windows.gitignore
# --------

# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk

# --------
# Linux
# https://github.com/github/gitignore/blob/master/Global/Linux.gitignore
# --------
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

# --------
# TGit
# --------
# Project-level settings
/.tgitconfig

# --------
# Mac OS
# https://github.com/github/gitignore/blob/master/Global/macOS.gitignore
# --------
*.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
.idea

build/
1 change: 1 addition & 0 deletions argus-apm-gradle/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Argus APM Gradle
81 changes: 81 additions & 0 deletions argus-apm-gradle/bintray.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
// 应用插件
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'


def baseUrl = 'https://github.com/Qihoo360/ArgusApm'
def siteUrl = baseUrl
def gitUrl = "${baseUrl}/ArgusApm"
def issueUrl = "${gitUrl}/issues"



install {
repositories {
mavenInstaller {
// This generates POM.xml with proper paramters
pom.project {

//添加项目描述
name 'Gradle Plugin for Android'
url siteUrl
//设置开源证书信息
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
//添加开发者信息
developers {
developer {
name 'argusapm'
email '[email protected]'
}
}

scm {
connection gitUrl
developerConnection gitUrl
url siteUrl
}
}
}

}
}

// 强制 Java/JavaDoc 等的编码为 UTF-8
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}

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

artifacts {
archives javadocJar
archives sourcesJar
}

//配置上传Bintray相关信息
bintray {
user = BINTRAY_USER
key = BINTRAY_APIKEY

configurations = ['archives']
pkg {
repo = 'argusapm' // 上传到中央仓库的名称
name = 'argus-apm-gradle' // 上传到jcenter 的项目名称
userOrg = 'argusapm'
desc = 'ArgusApm - A flexible, stable, easy-to-use Android Performence Library' // 项目描述
websiteUrl = siteUrl
issueTrackerUrl = issueUrl
vcsUrl = gitUrl
labels = ['gradle', 'plugin', 'argus', 'apm']
licenses = ['Apache-2.0']
publish = true
}
}
111 changes: 111 additions & 0 deletions argus-apm-gradle/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
buildscript {
ext.kotlin_version = '1.2.30'
repositories {
***REMOVED***
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}


apply plugin: 'kotlin'
apply plugin: 'maven'
apply plugin: 'com.jfrog.bintray'

project.ext {
aspectjVersion = '1.8.12'
}

jar {
from {
zipTree(new File(project.projectDir.absolutePath + "/libs/aspectjtools.jar"))
}
}

dependencies {
repositories {
***REMOVED***
jcenter()
mavenCentral()
maven { url 'https://maven.google.com' }
maven { url 'http://repository.jetbrains.com/utils' }
maven { url "https://dl.bintray.com/archinamon/maven" }
}

compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compileOnly gradleApi()
compileOnly 'com.android.tools.build:gradle:3.1.3'
// compile "org.aspectj:aspectjrt:$aspectjVersion"
// compile "org.aspectj:aspectjtools:$aspectjVersion"
compile files('libs/aspectjtools.jar')
}

group = 'com.qihoo360.argusapm'
version = '2.0.1.1005'

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

/*uploadArchives {
configuration = configurations.archives
repositories {
mavenDeployer {
repository(url: uri('file:/C:/Users/liuqingjie/.m2/repository'))
pom.project {
version '2.0.1.1031'
artifactId 'argus-apm-gradle'
groupId GROUP_ID
packaging TYPE
description DESCRIPTION
}
}
}
}*/

apply from: "bintray.gradle"

/*
uploadArchives {
configuration = configurations.archives
repositories {
mavenDeployer {
*/
/*snapshotRepository(url: MAVEN_REPO_SNAPSHOT_URL) {
authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD)
}*//*
repository(url: MAVEN_REPO_RELEASE_URL) {
authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD)
}
pom.project {
version '2.0.1.1004'
artifactId 'android'
groupId GROUP_ID
packaging TYPE
description DESCRIPTION
}
}
}
}
*/



repositories {
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
Loading

0 comments on commit d2c2def

Please sign in to comment.