How to exclude particular class from a jar in gradle

时间:2016-04-07 10:37:40

标签: gradle spring-boot dependencies

I want to exclude particular class from a jar in gradle dependency

dependencies {
    compile("com.example:myapp") {
        exclude("org/springframework/**")
    }
}

Any suggestions? I am stuck with the dirty class.

1 个答案:

答案 0 :(得分:2)

您可以使用 self.arrData = nil; self.arrData = [[NSMutableArray alloc]init]; self.arrData = [result[@"data"] mutableCopy]; for (int i =0; i<self.arrData.count; i++) { NSString *strImage1 = [NSString stringWithFormat:@"%@",[[self.arrData objectAtIndex:i]valueForKey:@"full_picture"]]; NSString *strComment =[NSString stringWithFormat:@"%@", [[self.arrData objectAtIndex:i ]valueForKey:@"message"]]; //in strComment i get @"(null)" message. NSString *strLike = [NSString stringWithFormat:@"%@", [[[[self.arrData objectAtIndex:i]valueForKey:@"likes"]valueForKey:@"summary"]valueForKey:@"total_count"]]; NSString *strCommentCount = [NSString stringWithFormat:@"%@", [[[[self.arrData objectAtIndex:i]valueForKey:@"comments"]valueForKey:@"summary"]valueForKey:@"total_count"]]; NSString *strTime = [NSString stringWithFormat:@"%@",[[self.arrData objectAtIndex:i]valueForKey:@"created_time"]]; CustomSocialView *imageView1 = [[CustomSocialView alloc] initWithFrame:CGRectMake(0, 0, width, 170)]; [self.vLayout addSubview:imageView1]; //conditions if (strImage1 == nil)// if image is not available. { NSLog(@"no image"); [imageView1 setContentText:strComment like:strLike comment:strCommentCount time:strTime]; } else if ([strCommentCount isEqual: 0]) // if Message is not available // may be here i am wrong. { NSLog(@"no msg"); [imageView1 setImage:strImage1 like:strLike comment:strCommentCount time:strTime]; } else { NSLog(@"Both image and msg are available"); [imageView1 setImage:strImage1 setContentText:strComment like:strLike comment:strCommentCount time:strTime]; } 任务解压缩jar,排除所需的类,然后在提取的类上添加文件依赖项。

例如:

Copy